fix compilation without #define DEBUG, after r876
Some variables, functions used are only compiled in with DEBUG so the debugging-calls can only be used inside DEBUG git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@877 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
c510f87ed7
commit
ae103b3de3
|
@ -1037,9 +1037,9 @@ static void moveCalcTurn(FRACT *pCurr, FRACT target, UDWORD rate)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
debug( LOG_NEVER, "path %d: diff %f\n", path, diff);
|
|
||||||
|
|
||||||
#ifdef DEBUG //Don't forget that if you don't define the variable, then we error out.
|
#ifdef DEBUG //Don't forget that if you don't define the variable, then we error out.
|
||||||
|
debug( LOG_NEVER, "path %d: diff %f\n", path, diff);
|
||||||
|
|
||||||
ASSERT( MAKEINT(*pCurr) < 360 && MAKEINT(*pCurr) >= 0,
|
ASSERT( MAKEINT(*pCurr) < 360 && MAKEINT(*pCurr) >= 0,
|
||||||
"moveCalcTurn: angle out of range - path %d\n"
|
"moveCalcTurn: angle out of range - path %d\n"
|
||||||
" NOTE - ANYONE WHO SEES THIS PLEASE REMEMBER: path %d", path, path );
|
" NOTE - ANYONE WHO SEES THIS PLEASE REMEMBER: path %d", path, path );
|
||||||
|
|
|
@ -3876,7 +3876,9 @@ BOOL secondarySetState(DROID *psDroid, SECONDARY_ORDER sec, SECONDARY_STATE Stat
|
||||||
case DSO_ASSIGN_PRODUCTION:
|
case DSO_ASSIGN_PRODUCTION:
|
||||||
case DSO_ASSIGN_CYBORG_PRODUCTION:
|
case DSO_ASSIGN_CYBORG_PRODUCTION:
|
||||||
case DSO_ASSIGN_VTOL_PRODUCTION:
|
case DSO_ASSIGN_VTOL_PRODUCTION:
|
||||||
|
#ifdef DEBUG
|
||||||
debug( LOG_NEVER, "order factories %s\n", secondaryPrintFactories(State));
|
debug( LOG_NEVER, "order factories %s\n", secondaryPrintFactories(State));
|
||||||
|
#endif
|
||||||
if ( sec == DSO_ASSIGN_PRODUCTION)
|
if ( sec == DSO_ASSIGN_PRODUCTION)
|
||||||
{
|
{
|
||||||
prodType = REF_FACTORY;
|
prodType = REF_FACTORY;
|
||||||
|
@ -3941,7 +3943,9 @@ BOOL secondarySetState(DROID *psDroid, SECONDARY_ORDER sec, SECONDARY_STATE Stat
|
||||||
CurrState &= ~DSS_ASSPROD_VTOL_MASK;
|
CurrState &= ~DSS_ASSPROD_VTOL_MASK;
|
||||||
}
|
}
|
||||||
CurrState |= (State & DSS_ASSPROD_MASK);
|
CurrState |= (State & DSS_ASSPROD_MASK);
|
||||||
|
#ifdef DEBUG
|
||||||
debug( LOG_NEVER, "final factories %s\n", secondaryPrintFactories(CurrState));
|
debug( LOG_NEVER, "final factories %s\n", secondaryPrintFactories(CurrState));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue