This commit is contained in:
parent
ae6b5ef072
commit
6c221940f6
6 changed files with 77 additions and 9 deletions
|
@ -128,11 +128,13 @@ void CNpcBouncePlatform::render()
|
|||
|
||||
#if defined (__USER_paul__) || defined (__USER_charles__)
|
||||
DVECTOR centre;
|
||||
DVECTOR size;
|
||||
int halfLength;
|
||||
int x1,y1,x2,y2;
|
||||
|
||||
centre=getCollisionCentre();
|
||||
halfLength=PLATFORMWIDTH/2;
|
||||
size=getCollisionSize();
|
||||
halfLength=size.vx>>1;
|
||||
|
||||
x1=-halfLength*mcos(getCollisionAngle()&4095)>>12;
|
||||
y1=-halfLength*msin(getCollisionAngle()&4095)>>12;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue