comparison Actor.cpp @ 1870:7a193504f18e

Actor::AI_SpellAttack adding accidentally removed random position for meteor shower
author Grumpy7
date Wed, 16 Oct 2013 05:59:21 +0200
parents e622546c8f0c
children e26d8d15ef30
comparison
equal deleted inserted replaced
1869:bc7a6ee34316 1870:7a193504f18e
340 else if (masteryLevel == 3) 340 else if (masteryLevel == 3)
341 v23 = 12; 341 v23 = 12;
342 else if (masteryLevel == 4) 342 else if (masteryLevel == 4)
343 v23 = 14; 343 v23 = 14;
344 spellnumb = 0; 344 spellnumb = 0;
345 v28 = 0;
345 for ( int i = 0; i < v23; i++) 346 for ( int i = 0; i < v23; i++)
346 { 347 {
347 v28 = spellnumb;
348 v30 = rand() % 1000; 348 v30 = rand() % 1000;
349 spellnumc = v30 - 2500; 349 spellnumc = v30 - 2500;
350 v120 = v28 * v28; 350 v120 = v28 * v28;
351 v119 = spellnumb * spellnumb; 351 v119 = spellnumb * spellnumb;
352 if ( sqrt((float)(spellnumc * spellnumc + v119 + v120)) <= 1.0 ) 352 if ( sqrt((float)(spellnumc * spellnumc + v119 + v120)) <= 1.0 )
394 if ( v36 != -1 ) 394 if ( v36 != -1 )
395 { 395 {
396 pAudioPlayer->PlaySound((SoundID)word_4EE088_sound_ids[9], PID(OBJECT_Item, v36), 0, -1, 0, 0, 0, 0); 396 pAudioPlayer->PlaySound((SoundID)word_4EE088_sound_ids[9], PID(OBJECT_Item, v36), 0, -1, 0, 0, 0, 0);
397 } 397 }
398 spellnumb = rand() % 1024 - 512; 398 spellnumb = rand() % 1024 - 512;
399 v28 = rand() % 1024 - 512;
399 } 400 }
400 return; 401 return;
401 break; 402 break;
402 403
403 case SPELL_AIR_SPARKS: 404 case SPELL_AIR_SPARKS: