# HG changeset patch # User Grumpy7 # Date 1381704025 -7200 # Node ID 51e9b4621d0a3d691c5a9bbeed332840785d30f3 # Parent a02d72dd76535e9b8a5f83ad17c8cd1325b93a11 Actor::AI_SpellAttack preparing to remove label 159 diff -r a02d72dd7653 -r 51e9b4621d0a Actor.cpp --- a/Actor.cpp Mon Oct 14 00:24:57 2013 +0200 +++ b/Actor.cpp Mon Oct 14 00:40:25 2013 +0200 @@ -320,6 +320,27 @@ signed int a1b; // [sp+E0h] [bp+10h]@145 int a1c; // [sp+E0h] [bp+10h]@184 + + + if ( uSpellID == 6 ) + goto LABEL_159; + if ( uSpellID == 11 ) + goto LABEL_159; + if ( uSpellID == 18 || uSpellID == 2 ) + goto LABEL_159; + if ( uSpellID == 26 || uSpellID == 29 ) + goto LABEL_159; + if ( uSpellID == 39 || uSpellID == 41 ) + goto LABEL_159; + if ( uSpellID == 57 || uSpellID == 65 || uSpellID == 70 ) + goto LABEL_159; + if ( uSpellID == 78 ) + goto LABEL_159; + if ( uSpellID == 90 ) + goto LABEL_159; + if ( uSpellID == 97 ) + goto LABEL_159; + LODWORD(v120) = uActorID; v5 = &pActors[uActorID]; v117 = pDir; @@ -331,12 +352,8 @@ { if ( uSpellID <= 18 ) { - if ( uSpellID == 18 || uSpellID == 2 ) - goto LABEL_159; if ( uSpellID != 5 ) { - if ( uSpellID == 6 ) - goto LABEL_159; if ( uSpellID != 9 ) { if ( uSpellID != 11 ) @@ -639,12 +656,8 @@ pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); return; } - if ( uSpellID == 26 || uSpellID == 29 ) - goto LABEL_159; if ( uSpellID != 38 ) { - if ( uSpellID == 39 || uSpellID == 41 ) - goto LABEL_159; if ( uSpellID != 46 ) return; @@ -776,8 +789,6 @@ } if ( uSpellID != 51 ) { - if ( uSpellID == 57 || uSpellID == 65 || uSpellID == 70 ) - goto LABEL_159; if ( uSpellID == 73 ) { if ( (signed int)masteryLevel <= 0 || (signed int)masteryLevel > 4 ) @@ -811,9 +822,7 @@ pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); return; } - if ( uSpellID != 78 ) - return; - goto LABEL_159; + return; } if (masteryLevel == 0) { @@ -918,15 +927,11 @@ pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); return; } - if ( uSpellID == 90 ) - goto LABEL_159; if ( uSpellID != 93 ) { if ( uSpellID != 95 ) { - if ( uSpellID != 97 ) - return; - goto LABEL_159; + return; } if (masteryLevel == 0) v68 = 0;