Author: cazfi
Date: Sat Apr  2 10:07:34 2016
New Revision: 32292

URL: http://svn.gna.org/viewcvs/freeciv?rev=32292&view=rev
Log:
Fixed erronous deprecation warning about 'prefered' instead of 'preferred' in 
game.ruleset
entry names when neither entry is present.

See bug #24542

Modified:
    branches/S2_6/server/ruleset.c

Modified: branches/S2_6/server/ruleset.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/ruleset.c?rev=32292&r1=32291&r2=32292&view=diff
==============================================================================
--- branches/S2_6/server/ruleset.c      (original)
+++ branches/S2_6/server/ruleset.c      Sat Apr  2 10:07:34 2016
@@ -4992,7 +4992,7 @@
 
   /* section: tileset */
   pref_text = secfile_lookup_str_default(file, "", "tileset.prefered");
-  if (pref_text != NULL) {
+  if (pref_text[0] != '\0') {
     log_deprecation("Entry tileset.prefered in game.ruleset."
                     " Use correct spelling tileset.preferred instead");
   }
@@ -5007,7 +5007,7 @@
 
   /* section: soundset */
   pref_text = secfile_lookup_str_default(file, "", "soundset.prefered");
-  if (pref_text != NULL) {
+  if (pref_text[0] != '\0') {
     log_deprecation("Entry soundset.prefered in game.ruleset."
                     " Use correct spelling soundset.preferred instead");
   }
@@ -5022,7 +5022,7 @@
 
   /* section: musicset */
   pref_text = secfile_lookup_str_default(file, "", "musicset.prefered");
-  if (pref_text != NULL) {
+  if (pref_text[0] != '\0') {
     log_deprecation("Entry musicset.prefered in game.ruleset."
                     " Use correct spelling musicset.preferred instead");
   }


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to