comparison Game.cpp @ 1094:c40d40027b77

npc some clean
author Gloval
date Sun, 26 May 2013 18:55:31 +0400
parents bcebd491e8fa
children 7c3772c91c7c
comparison
equal deleted inserted replaced
1092:38890b8385e4 1094:c40d40027b77
580 580
581 581
582 //----- (0044F120) -------------------------------------------------------- 582 //----- (0044F120) --------------------------------------------------------
583 void Game::PushStationaryLights(int a2) 583 void Game::PushStationaryLights(int a2)
584 { 584 {
585 signed int v3; // ebx@1 585 Game__StationaryLight* pLight;
586 char *v4; // esi@2 586
587 587 for( int i=0; i<uNumStationaryLights; ++i )
588 auto v2 = this; 588 {
589 v3 = 0; 589 pLight=&pStationaryLights[i];
590 if ( (signed int)this->uNumStationaryLights > 0 ) 590 pStationaryLightsStack->AddLight(
591 { 591 pLight->vPosition.x,
592 v4 = (char *)&this->pStationaryLights[0].vRGBColor.y; 592 pLight->vPosition.y,
593 do 593 pLight->vPosition.z,
594 { 594 pLight->flt_18,
595 pStationaryLightsStack->AddLight( 595 pLight->vRGBColor.x,
596 (signed __int64)*((float *)v4 - 4), 596 pLight->vRGBColor.y,
597 (signed __int64)*((float *)v4 - 3), 597 pLight->vRGBColor.z,
598 (signed __int64)*((float *)v4 - 2), 598 byte_4E94D0);
599 (signed __int64)*((float *)v4 + 2), 599 }
600 (signed __int64)*((float *)v4 - 1),
601 (signed __int64)*(float *)v4,
602 (signed __int64)*((float *)v4 + 1),
603 byte_4E94D0);
604 ++v3;
605 v4 += 28;
606 }
607 while ( v3 < (signed int)v2->uNumStationaryLights );
608 }
609 } 600 }
610 // 4E94D0: using guessed type char byte_4E94D0; 601 // 4E94D0: using guessed type char byte_4E94D0;
611 602
612 //----- (0044F0FD) -------------------------------------------------------- 603 //----- (0044F0FD) --------------------------------------------------------
613 void Game::_44F0FD() 604 void Game::_44F0FD()