aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-14 16:50:01 -0700
committermaximius <none@none>2009-09-14 16:50:01 -0700
commit6cb428318af4aba5ebb9d9340284165ca6181065 (patch)
tree9aee2db05975f78bf96fc0bbfff47a5fa4fca112 /src/game/Level3.cpp
parent33f8f5ac2d2b99819ce7e0f4aad4fa0648eba35e (diff)
parent140ec674a040bdc04086472330a289c2d15ecc65 (diff)
*Merge..
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 488b28ff280..025a367528c 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -5438,7 +5438,7 @@ bool ChatHandler::HandleServerRestartCommand(const char* args)
int32 time = atoi (time_str);
///- Prevent interpret wrong arg value as 0 secs shutdown time
- if ((time == 0 && (time_str[0]!='0' || time_str[1]!='\0')) || time < 0)
+ if(time == 0 && (time_str[0]!='0' || time_str[1]!='\0') || time < 0)
return false;
if (exitcode_str)
@@ -5473,7 +5473,7 @@ bool ChatHandler::HandleServerIdleRestartCommand(const char* args)
int32 time = atoi (time_str);
///- Prevent interpret wrong arg value as 0 secs shutdown time
- if ((time == 0 && (time_str[0]!='0' || time_str[1]!='\0')) || time < 0)
+ if(time == 0 && (time_str[0]!='0' || time_str[1]!='\0') || time < 0)
return false;
if (exitcode_str)
@@ -5508,7 +5508,7 @@ bool ChatHandler::HandleServerIdleShutDownCommand(const char* args)
int32 time = atoi (time_str);
///- Prevent interpret wrong arg value as 0 secs shutdown time
- if ((time == 0 && (time_str[0]!='0' || time_str[1]!='\0')) || time < 0)
+ if(time == 0 && (time_str[0]!='0' || time_str[1]!='\0') || time < 0)
return false;
if (exitcode_str)
@@ -7068,7 +7068,7 @@ bool ChatHandler::HandleSendItemsCommand(const char* args)
}
uint32 item_count = itemCountStr ? atoi(itemCountStr) : 1;
- if (item_count < 1 || (item_proto->MaxCount > 0 && item_count > uint32(item_proto->MaxCount)))
+ if(item_count < 1 || item_proto->MaxCount > 0 && item_count > uint32(item_proto->MaxCount))
{
PSendSysMessage(LANG_COMMAND_INVALID_ITEM_COUNT, item_count,item_id);
SetSentErrorMessage(true);