This commit is contained in:
parent
a0355ecfea
commit
291914a0cc
3 changed files with 56 additions and 45 deletions
|
@ -1092,6 +1092,16 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
|
|||
#endif
|
||||
|
||||
}
|
||||
|
||||
/****************************************************************************************/
|
||||
void CThing::calcRenderPos(DVECTOR const &Pos,DVECTOR &renderPos)
|
||||
{
|
||||
DVECTOR const &CamPos=CLevel::getCameraPos();
|
||||
|
||||
renderPos.vx = Pos.vx - CamPos.vx;
|
||||
renderPos.vy = Pos.vy - CamPos.vy;
|
||||
}
|
||||
|
||||
/****************************************************************************************/
|
||||
#ifdef SHOW_BBOX
|
||||
#include "gfx\prim.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue