aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-07 19:13:19 +0200
committerSpp <none@none>2010-04-07 19:13:19 +0200
commit2e127f7a30706dc1d40c65de22ff02851732da24 (patch)
tree91f7e8033e9296fdd8dbb2d5a761c9980cc36f18 /src/game/Level3.cpp
parent182e9a20b107c0d824e8a0bd1cf8f7eceb2b4ce5 (diff)
Code style (game + scripts only):
"while(" --> "while (" --HG-- branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index d1293c710ae..36471278b34 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -2311,7 +2311,7 @@ bool ChatHandler::HandleLearnAllCommand(const char* /*args*/)
};
int loop = 0;
- while(strcmp(allSpellList[loop], "0"))
+ while (strcmp(allSpellList[loop], "0"))
{
uint32 spell = atol((char*)allSpellList[loop++]);
@@ -2354,7 +2354,7 @@ bool ChatHandler::HandleLearnAllGMCommand(const char* /*args*/)
};
uint16 gmSpellIter = 0;
- while( strcmp(gmSpellList[gmSpellIter], "0") )
+ while ( strcmp(gmSpellList[gmSpellIter], "0") )
{
uint32 spell = atol((char*)gmSpellList[gmSpellIter++]);
@@ -6089,7 +6089,7 @@ bool ChatHandler::HandleBanListHelper(QueryResult_AutoPtr result)
}
}while ( banInfo->NextRow() );
}
- }while( result->NextRow() );
+ }while ( result->NextRow() );
SendSysMessage("===============================================================================");
}
return true;
@@ -6161,7 +6161,7 @@ bool ChatHandler::HandleBanListIPCommand(const char *args)
aTm_unban->tm_year%100, aTm_unban->tm_mon+1, aTm_unban->tm_mday, aTm_unban->tm_hour, aTm_unban->tm_min,
fields[3].GetString(), fields[4].GetString());
}
- }while( result->NextRow() );
+ }while ( result->NextRow() );
SendSysMessage("===============================================================================");
}
@@ -6880,7 +6880,7 @@ bool ChatHandler::HandleGMListFullCommand(const char* /*args*/)
{
Field *fields = result->Fetch();
PSendSysMessage("|%15s|%6s|", fields[0].GetString(),fields[1].GetString());
- }while( result->NextRow() );
+ }while ( result->NextRow() );
PSendSysMessage("========================");
}
@@ -7019,7 +7019,7 @@ bool ChatHandler::HandleSendItemsCommand(const char *args)
char* tail = strtok(NULL, "");
// get from tail next item str
- while(char* itemStr = strtok(tail, " "))
+ while (char* itemStr = strtok(tail, " "))
{
// and get new tail
tail = strtok(NULL, "");
@@ -7048,7 +7048,7 @@ bool ChatHandler::HandleSendItemsCommand(const char *args)
return false;
}
- while(item_count > item_proto->GetMaxStackSize())
+ while (item_count > item_proto->GetMaxStackSize())
{
items.push_back(ItemPair(item_id,item_proto->GetMaxStackSize()));
item_count -= item_proto->GetMaxStackSize();