}
//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;
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++;