Corrected a compile error (#4107)

* Fixes a compile error for clients older than 2014-10-08 which don't support pet autofeed.
Thanks to @Normynator!
This commit is contained in:
Aleos 2019-04-15 13:42:47 -04:00 committed by GitHub
parent a348016058
commit 3057af757d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8660,9 +8660,9 @@ void battle_adjust_conf()
ShowWarning("conf/battle/feature.conf petevolution is enabled but it requires PACKETVER 2014-10-08 or newer, disabling...\n"); ShowWarning("conf/battle/feature.conf petevolution is enabled but it requires PACKETVER 2014-10-08 or newer, disabling...\n");
battle_config.feature_petevolution = 0; battle_config.feature_petevolution = 0;
} }
if (battle_config.feature_pet_auto_feed) { if (battle_config.feature_pet_autofeed) {
ShowWarning("conf/battle/feature.conf pet auto feed is enabled but it requires PACKETVER 2014-10-08 or newer, disabling...\n"); ShowWarning("conf/battle/feature.conf pet auto feed is enabled but it requires PACKETVER 2014-10-08 or newer, disabling...\n");
battle_config.feature_pet_auto_feed = 0; battle_config.feature_pet_autofeed = 0;
} }
#endif #endif