comparison CastSpellInfo.cpp @ 1420:e11c498c0dc6

more label cleaning 3
author zipi
date Sun, 28 Jul 2013 19:07:12 +0100
parents c9e3b93ec570
children c7489dd19f88
comparison
equal deleted inserted replaced
1419:9a1adf08f4ed 1420:e11c498c0dc6
4068 } 4068 }
4069 //----- (00427DA0) -------------------------------------------------------- 4069 //----- (00427DA0) --------------------------------------------------------
4070 unsigned int CastSpellInfo::PushCastSpellInfo(__int16 a2, __int16 uPlayerID, __int16 skill_level, __int16 a5, int spell_sound_id) 4070 unsigned int CastSpellInfo::PushCastSpellInfo(__int16 a2, __int16 uPlayerID, __int16 skill_level, __int16 a5, int spell_sound_id)
4071 { 4071 {
4072 unsigned int result; // eax@1 4072 unsigned int result; // eax@1
4073 CastSpellInfo *v7; // edx@1
4074 CastSpellInfo *v8; // ecx@5 4073 CastSpellInfo *v8; // ecx@5
4075 4074
4076 result = 0; 4075 result = 0;
4077 v7 = this; 4076 for( result = 0; result < 10; result++ )
4078 while ( v7->spellnum )
4079 { 4077 {
4080 ++result; 4078 if(!this[result].spellnum)
4081 ++v7; 4079 {
4082 if ( (signed int)result >= 10 ) 4080 v8 = &this[result];
4083 goto LABEL_8; 4081 v8->spellnum = a2;
4082 v8->uPlayerID = uPlayerID;
4083 if ( a5 & 0x10 )
4084 v8->uPlayerID_2 = uPlayerID;
4085 v8->field_6 = 0;
4086 v8->spell_target_pid = 0;
4087 v8->field_8 = a5;
4088 v8->forced_spell_skill_level = skill_level;
4089 v8->sound_id = spell_sound_id;
4090 }
4084 } 4091 }
4085 v8 = &this[result];
4086 v8->spellnum = a2;
4087 v8->uPlayerID = uPlayerID;
4088 if ( a5 & 0x10 )
4089 v8->uPlayerID_2 = uPlayerID;
4090 v8->field_6 = 0;
4091 v8->spell_target_pid = 0;
4092 v8->field_8 = a5;
4093 v8->forced_spell_skill_level = skill_level;
4094 v8->sound_id = spell_sound_id;
4095 LABEL_8:
4096 if ( result == 10 ) 4092 if ( result == 10 )
4097 result = -1; 4093 result = -1;
4098 return result; 4094 return result;
4099 } 4095 }
4100 //----- (00427D48) -------------------------------------------------------- 4096 //----- (00427D48) --------------------------------------------------------