comparison UI/UiGame.cpp @ 2494:de8c5c223e9c

for ACTOR_
author Ritor1
date Tue, 16 Sep 2014 17:48:58 +0600
parents 85a12b497698
children 7b076fe64f23
comparison
equal deleted inserted replaced
2493:bd4ada7615ce 2494:de8c5c223e9c
1961 } 1961 }
1962 } 1962 }
1963 for ( uint i = 0; i < uNumActors; ++i )//draw actors(отрисовка монстров и нпс) 1963 for ( uint i = 0; i < uNumActors; ++i )//draw actors(отрисовка монстров и нпс)
1964 { 1964 {
1965 if ( pActors[i].uAIState != Removed && pActors[i].uAIState != Disabled 1965 if ( pActors[i].uAIState != Removed && pActors[i].uAIState != Disabled
1966 && (pActors[i].uAIState == Dead || pActors[i].uAttributes & 0x8000) ) 1966 && (pActors[i].uAIState == Dead || pActors[i].ActorNearby()) )
1967 { 1967 {
1968 pPoint_X = uCenterX + (fixpoint_mul((pActors[i].vPosition.x - pParty->vPosition.x), uZoom)); 1968 pPoint_X = uCenterX + (fixpoint_mul((pActors[i].vPosition.x - pParty->vPosition.x), uZoom));
1969 pPoint_Y = uCenterY - (fixpoint_mul((pActors[i].vPosition.y - pParty->vPosition.y), uZoom)); 1969 pPoint_Y = uCenterY - (fixpoint_mul((pActors[i].vPosition.y - pParty->vPosition.y), uZoom));
1970 //if ( pPoint_X >= pRenderer->raster_clip_x && pPoint_X <= pRenderer->raster_clip_z 1970 //if ( pPoint_X >= pRenderer->raster_clip_x && pPoint_X <= pRenderer->raster_clip_z
1971 // && pPoint_Y >= pRenderer->raster_clip_y && pPoint_Y <= pRenderer->raster_clip_w ) 1971 // && pPoint_Y >= pRenderer->raster_clip_y && pPoint_Y <= pRenderer->raster_clip_w )