Author: cazfi
Date: Sat Jan 31 10:06:21 2015
New Revision: 27912

URL: http://svn.gna.org/viewcvs/freeciv?rev=27912&view=rev
Log:
Made /scensave command available in release builds.

See patch #5755

Modified:
    trunk/server/commands.c
    trunk/server/commands.h
    trunk/server/stdinhand.c

Modified: trunk/server/commands.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/commands.c?rev=27912&r1=27911&r2=27912&view=diff
==============================================================================
--- trunk/server/commands.c     (original)
+++ trunk/server/commands.c     Sat Jan 31 10:06:21 2015
@@ -561,7 +561,6 @@
       "and use the 'start' command once players have reconnected."), NULL,
    CMD_ECHO_ADMINS, VCF_NONE, 0
   },
-#ifdef DEBUG
   {"scensave", ALLOW_ADMIN,
    /* TRANS: translate text between <> only */
    N_("scensave\n"
@@ -575,7 +574,6 @@
       "and use the 'start' command once players have reconnected."), NULL,
    CMD_ECHO_ADMINS, VCF_NONE, 0
   },
-#endif /* DEBUG */
   {"load",      ALLOW_CTRL,
    /* TRANS: translate text between <> only */
    N_("load\n"

Modified: trunk/server/commands.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/commands.h?rev=27912&r1=27911&r2=27912&view=diff
==============================================================================
--- trunk/server/commands.h     (original)
+++ trunk/server/commands.h     Sat Jan 31 10:06:21 2015
@@ -83,9 +83,7 @@
   CMD_SURRENDER, /* not really harmful, info level */
   CMD_REMOVE,
   CMD_SAVE,
-#ifdef DEBUG
   CMD_SCENSAVE,
-#endif
   CMD_LOAD,
   CMD_READ_SCRIPT,
   CMD_WRITE_SCRIPT,

Modified: trunk/server/stdinhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/stdinhand.c?rev=27912&r1=27911&r2=27912&view=diff
==============================================================================
--- trunk/server/stdinhand.c    (original)
+++ trunk/server/stdinhand.c    Sat Jan 31 10:06:21 2015
@@ -648,7 +648,6 @@
   For command "scensave foo";
   Save the game, with filename=arg, provided server state is ok.
 **************************************************************************/
-#ifdef DEBUG
 static bool scensave_command(struct connection *caller, char *arg, bool check)
 {
   if (is_restricted(caller)) {
@@ -661,7 +660,6 @@
   }
   return TRUE;
 }
-#endif /* DEBUG */
 
 /**************************************************************************
   Handle ai player ai toggling.
@@ -4218,10 +4216,8 @@
     return remove_player_command(caller, arg, check);
   case CMD_SAVE:
     return save_command(caller, arg, check);
-#ifdef DEBUG
   case CMD_SCENSAVE:
     return scensave_command(caller, arg, check);
-#endif
   case CMD_LOAD:
     return load_command(caller, arg, check);
   case CMD_METAPATCHES:


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

Reply via email to