mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +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
|
|
@ -131,7 +131,7 @@ Quest::Quest(Field * questRecord)
|
|||
m_rewitemscount = 0;
|
||||
m_rewchoiceitemscount = 0;
|
||||
|
||||
for (int i=0; i < QUEST_OBJECTIVES_COUNT; i++)
|
||||
for (int i=0; i < QUEST_OBJECTIVES_COUNT; ++i)
|
||||
{
|
||||
if ( ReqItemId[i] )
|
||||
++m_reqitemscount;
|
||||
|
|
@ -139,13 +139,13 @@ Quest::Quest(Field * questRecord)
|
|||
++m_reqCreatureOrGOcount;
|
||||
}
|
||||
|
||||
for (int i=0; i < QUEST_REWARDS_COUNT; i++)
|
||||
for (int i=0; i < QUEST_REWARDS_COUNT; ++i)
|
||||
{
|
||||
if ( RewItemId[i] )
|
||||
++m_rewitemscount;
|
||||
}
|
||||
|
||||
for (int i=0; i < QUEST_REWARD_CHOICES_COUNT; i++)
|
||||
for (int i=0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
|
||||
{
|
||||
if (RewChoiceItemId[i])
|
||||
++m_rewchoiceitemscount;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue