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-861f7616d084
master
Per Inge Mathisen 2009-07-28 16:12:55 +00:00 committed by Git SVN Gateway
parent 684444a031
commit 08306f2bb1
1 changed files with 2 additions and 2 deletions

View File

@ -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;