summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-10 18:59:10 -0300
committershennetsind <ind@henn.et>2013-10-10 18:59:10 -0300
commit646f7e2f4ea4bd6b07e66d2949817ebdc18f3484 (patch)
treeb15f69a6934b1148faf398e8b19b710024078b09 /src/map/battle.c
parenta2e01e40c9e60b8b2d75e4faf41d80a7041e8f93 (diff)
downloadhercules-646f7e2f4ea4bd6b07e66d2949817ebdc18f3484.tar.gz
hercules-646f7e2f4ea4bd6b07e66d2949817ebdc18f3484.tar.bz2
hercules-646f7e2f4ea4bd6b07e66d2949817ebdc18f3484.tar.xz
hercules-646f7e2f4ea4bd6b07e66d2949817ebdc18f3484.zip
Added code to disable auction for clients it is no longer stable
Regarding http://hercules.ws/board/topic/414-auction-feature-all-screwed-up Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index a0e4e7ebc..91cb98d14 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6475,6 +6475,8 @@ static const struct _battle_data {
{ "snovice_call_type", &battle_config.snovice_call_type, 0, 0, 1, },
{ "guild_notice_changemap", &battle_config.guild_notice_changemap, 2, 0, 2, },
{ "feature.banking", &battle_config.feature_banking, 1, 0, 1, },
+ { "feature.auction", &battle_config.feature_auction, 0, 0, 2, },
+
};
#ifndef STATS_OPT_OUT
@@ -6705,6 +6707,14 @@ void battle_adjust_conf(void) {
}
#endif
+#if PACKETVER > 20120000 /* exact date not known */
+ if( battle_config.feature_auction == 1 ) {
+ ShowWarning("conf/battle/feature.conf:feature.auction is enabled but it is not stable on PACKETVER "EXPAND_AND_QUOTE(PACKETVER)", disabling...\n");
+ ShowWarning("conf/battle/feature.conf:feature.auction change value to '2' to silence this warning and maintain it enabled\n");
+ battle_config.feature_auction = 0;
+ }
+#endif
+
#ifndef CELL_NOSTACK
if (battle_config.cell_stack_limit != 1)