summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-06-10 12:33:02 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-06-10 12:33:02 +0800
commit8883e6a9a9decf393cdf2d6ad68f32756a85180d (patch)
treef0a2494b33d96c8d0c3a2cd2bf6a8b9eb9f499d9
parent0762a9c267818ec3dc037e5c896e92c80b7a4e29 (diff)
downloadpttbbs-8883e6a9a9decf393cdf2d6ad68f32756a85180d.tar
pttbbs-8883e6a9a9decf393cdf2d6ad68f32756a85180d.tar.gz
pttbbs-8883e6a9a9decf393cdf2d6ad68f32756a85180d.tar.bz2
pttbbs-8883e6a9a9decf393cdf2d6ad68f32756a85180d.tar.lz
pttbbs-8883e6a9a9decf393cdf2d6ad68f32756a85180d.tar.xz
pttbbs-8883e6a9a9decf393cdf2d6ad68f32756a85180d.tar.zst
pttbbs-8883e6a9a9decf393cdf2d6ad68f32756a85180d.zip
* make entropy ratio in editor customizable
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5057 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/edit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/edit.c b/pttbbs/mbbsd/edit.c
index 9f61c15e..062ac6ce 100644
--- a/pttbbs/mbbsd/edit.c
+++ b/pttbbs/mbbsd/edit.c
@@ -47,7 +47,10 @@
#define POST_MONEY_RATIO (0.5f)
#endif
+#ifndef ENTROPY_RATIO
#define ENTROPY_RATIO (0.25f)
+#endif
+
#define ENTROPY_MAX (MAX_POST_MONEY/ENTROPY_RATIO)
#if 0