mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
a4373c887d
commit
8144f30199
69 changed files with 536 additions and 536 deletions
|
|
@ -378,7 +378,7 @@ bool ChatHandler::HandleDebugGetItemState(const char* args)
|
|||
{
|
||||
state_str = "The player has the following " + state_str + " items: ";
|
||||
SendSysMessage(state_str.c_str());
|
||||
for (uint8 i = PLAYER_SLOT_START; i < PLAYER_SLOT_END; i++)
|
||||
for (uint8 i = PLAYER_SLOT_START; i < PLAYER_SLOT_END; ++i)
|
||||
{
|
||||
if(i >= BUYBACK_SLOT_START && i < BUYBACK_SLOT_END)
|
||||
continue;
|
||||
|
|
@ -406,7 +406,7 @@ bool ChatHandler::HandleDebugGetItemState(const char* args)
|
|||
if (list_queue)
|
||||
{
|
||||
std::vector<Item *> &updateQueue = player->GetItemUpdateQueue();
|
||||
for(size_t i = 0; i < updateQueue.size(); i++)
|
||||
for(size_t i = 0; i < updateQueue.size(); ++i)
|
||||
{
|
||||
Item *item = updateQueue[i];
|
||||
if(!item) continue;
|
||||
|
|
@ -433,7 +433,7 @@ bool ChatHandler::HandleDebugGetItemState(const char* args)
|
|||
{
|
||||
bool error = false;
|
||||
std::vector<Item *> &updateQueue = player->GetItemUpdateQueue();
|
||||
for (uint8 i = PLAYER_SLOT_START; i < PLAYER_SLOT_END; i++)
|
||||
for (uint8 i = PLAYER_SLOT_START; i < PLAYER_SLOT_END; ++i)
|
||||
{
|
||||
if(i >= BUYBACK_SLOT_START && i < BUYBACK_SLOT_END)
|
||||
continue;
|
||||
|
|
@ -549,7 +549,7 @@ bool ChatHandler::HandleDebugGetItemState(const char* args)
|
|||
}
|
||||
}
|
||||
|
||||
for(size_t i = 0; i < updateQueue.size(); i++)
|
||||
for(size_t i = 0; i < updateQueue.size(); ++i)
|
||||
{
|
||||
Item *item = updateQueue[i];
|
||||
if(!item) continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue