summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 04:30:20 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 04:30:20 +0000
commit40a6a7e1c90c52a9e69c5ca6532235d53131fc93 (patch)
tree901840451664e71778336d2f72335db2fc3a6561 /src/map/battle.c
parent9db1b86c18600df81a5f5d6099736349c0068755 (diff)
downloadhercules-40a6a7e1c90c52a9e69c5ca6532235d53131fc93.tar.gz
hercules-40a6a7e1c90c52a9e69c5ca6532235d53131fc93.tar.bz2
hercules-40a6a7e1c90c52a9e69c5ca6532235d53131fc93.tar.xz
hercules-40a6a7e1c90c52a9e69c5ca6532235d53131fc93.zip
Minor packetver babysitting, bugreport:4810
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15381 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 784d4b8bd..00d7a2dc1 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -4672,7 +4672,21 @@ void battle_adjust_conf()
battle_config.day_duration = 60000;
if (battle_config.night_duration && battle_config.night_duration < 60000) // added by [Yor]
battle_config.night_duration = 60000;
-
+
+#if PACKETVER < 20100427
+ if( battle_config.feature_buying_store ) {
+ ShowWarning("conf/battle/feature.conf buying_store is enabled but it requires PACKETVER 2010-04-27 or newer, disabling...\n");
+ battle_config.feature_buying_store = 0;
+ }
+#endif
+
+#if PACKETVER < 20100803
+ if( battle_config.feature_buying_store ) {
+ ShowWarning("conf/battle/feature.conf search_stores is enabled but it requires PACKETVER 2010-08-03 or newer, disabling...\n");
+ battle_config.feature_search_stores = 0;
+ }
+#endif
+
#ifndef CELL_NOSTACK
if (battle_config.cell_stack_limit != 1)
ShowWarning("Battle setting 'cell_stack_limit' takes no effect as this server was compiled without Cell Stack Limit support.\n");