Author: cazfi Date: Sat Jan 31 10:06:29 2015 New Revision: 27913 URL: http://svn.gna.org/viewcvs/freeciv?rev=27913&view=rev Log: Made /scensave command available in release builds.
See patch #5755 Modified: branches/S2_6/server/commands.c branches/S2_6/server/commands.h branches/S2_6/server/stdinhand.c Modified: branches/S2_6/server/commands.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/commands.c?rev=27913&r1=27912&r2=27913&view=diff ============================================================================== --- branches/S2_6/server/commands.c (original) +++ branches/S2_6/server/commands.c Sat Jan 31 10:06:29 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: branches/S2_6/server/commands.h URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/commands.h?rev=27913&r1=27912&r2=27913&view=diff ============================================================================== --- branches/S2_6/server/commands.h (original) +++ branches/S2_6/server/commands.h Sat Jan 31 10:06:29 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: branches/S2_6/server/stdinhand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/stdinhand.c?rev=27913&r1=27912&r2=27913&view=diff ============================================================================== --- branches/S2_6/server/stdinhand.c (original) +++ branches/S2_6/server/stdinhand.c Sat Jan 31 10:06:29 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