Fix camera bug in warcam code. Patch by i-NoD in ticket:757
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7907 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
684444a031
commit
08306f2bb1
|
@ -361,7 +361,7 @@ BOOL Status = true;
|
|||
/* Inform via console */
|
||||
if(foundTarget->type == OBJ_DROID)
|
||||
{
|
||||
if(!getWarCamStatus())
|
||||
if(getWarCamStatus())
|
||||
{
|
||||
CONPRINTF(ConsoleString,(ConsoleString,"WZ/CAM - %s",droidGetName((DROID*)foundTarget)));
|
||||
}
|
||||
|
@ -767,7 +767,7 @@ static void updateCameraAcceleration(UBYTE update)
|
|||
else
|
||||
{
|
||||
behind.x = ( CAM_DEFAULT_Y_OFFSET * SIN( DEG( trackingCamera.target->direction ) ) ) >> FP12_SHIFT;
|
||||
behind.x = ( CAM_DEFAULT_X_OFFSET * COS( DEG( trackingCamera.target->direction ) ) ) >> FP12_SHIFT;
|
||||
behind.y = ( CAM_DEFAULT_X_OFFSET * COS( DEG( trackingCamera.target->direction ) ) ) >> FP12_SHIFT;
|
||||
}
|
||||
|
||||
concern.y += angle*5;
|
||||
|
|
Loading…
Reference in New Issue