1
0
Fork 0

Suppress warnings

This commit is contained in:
fredb 2009-06-14 15:24:30 +00:00 committed by Tim Moore
parent 40586c77fd
commit 97c214e4fc
2 changed files with 3 additions and 3 deletions

View file

@ -277,8 +277,8 @@ void FGAIAircraft::ProcessFlightPlan( double dt, time_t now ) {
}
//TODO let the fp handle this (loading of next leg)
fp->IncrementWaypoint((bool) trafficRef);
if (!(fp->getNextWaypoint()) && trafficRef)
fp->IncrementWaypoint( trafficRef != 0 );
if (!(fp->getNextWaypoint()) && trafficRef != 0)
if (!loadNextLeg()) {
setDie(true);
return;

View file

@ -907,7 +907,7 @@ FGMultiplayMgr::ProcessPosMsg(const FGMultiplayMgr::MsgBuf& Msg,
length = MAX_TEXT_SIZE;
pData->string_value = new char[length + 1];
//cout << " String: ";
for (int i = 0; i < length; i++)
for (unsigned i = 0; i < length; i++)
{
pData->string_value[i] = (char) XDR_decode_int8(*xdr);
xdr++;