From 5d490a1020537c9a4bd990956f6a10c544f40d3f Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 1 Feb 2009 16:47:49 -0600 Subject: [7215] .gobject setphase now really work. By VladimirMangos. --HG-- branch : trunk --- src/game/Level2.cpp | 6 ++---- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index b43c4a971f5..8e891626b1c 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -4486,10 +4486,8 @@ bool ChatHandler::HandleGOPhaseCommand(const char* args) return false; } - if (!*args) - return false; - - uint32 phasemask = (uint32) atoi((char*)args); + char* phaseStr = strtok (NULL, " "); + uint32 phasemask = phaseStr? atoi(phaseStr) : 0; if ( phasemask == 0 ) { SendSysMessage(LANG_BAD_VALUE); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4b3b3fa5d97..3f93144e634 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7214" + #define REVISION_NR "7215" #endif // __REVISION_NR_H__ -- cgit v1.2.3