@@ -1325,7 +1325,7 @@ void PathfindCell::setGoalUnit(ObjectID unitID, const ICoord2D &pos )
1325
1325
allocateInfo (pos);
1326
1326
}
1327
1327
if (!m_info) {
1328
- DEBUG_CRASH ((" Ran out of pathfind cells - fatal error!!!!! jba. " ));
1328
+ DEBUG_CRASH ((" Ran out of pathfind cells - fatal error!!!!! jba." ));
1329
1329
return ;
1330
1330
}
1331
1331
m_info->m_goalUnitID = unitID;
@@ -1361,7 +1361,7 @@ void PathfindCell::setGoalAircraft(ObjectID unitID, const ICoord2D &pos )
1361
1361
allocateInfo (pos);
1362
1362
}
1363
1363
if (!m_info) {
1364
- DEBUG_CRASH ((" Ran out of pathfind cells - fatal error!!!!! jba. " ));
1364
+ DEBUG_CRASH ((" Ran out of pathfind cells - fatal error!!!!! jba." ));
1365
1365
return ;
1366
1366
}
1367
1367
m_info->m_goalAircraftID = unitID;
@@ -1397,7 +1397,7 @@ void PathfindCell::setPosUnit(ObjectID unitID, const ICoord2D &pos )
1397
1397
allocateInfo (pos);
1398
1398
}
1399
1399
if (!m_info) {
1400
- DEBUG_CRASH ((" Ran out of pathfind cells - fatal error!!!!! jba. " ));
1400
+ DEBUG_CRASH ((" Ran out of pathfind cells - fatal error!!!!! jba." ));
1401
1401
return ;
1402
1402
}
1403
1403
if (m_info->m_goalUnitID !=INVALID_ID && (m_info->m_goalUnitID ==m_info->m_posUnitID )) {
@@ -5157,7 +5157,7 @@ Bool Pathfinder::queueForPath(ObjectID id)
5157
5157
AIUpdateInterface *tmpAI = tmpObj->getAIUpdateInterface ();
5158
5158
if (tmpAI) {
5159
5159
const Coord3D* pos = tmpAI->friend_getRequestedDestination ();
5160
- DEBUG_ASSERTLOG (pos->x != 0.0 && pos->y != 0.0 , (" Queueing pathfind to (0, 0), usually a bug. (Unit Name: '%s', Type: '%s' " , tmpObj->getName ().str (), tmpObj->getTemplate ()->getName ().str ()));
5160
+ DEBUG_ASSERTLOG (pos->x != 0.0 && pos->y != 0.0 , (" Queueing pathfind to (0, 0), usually a bug. (Unit Name: '%s', Type: '%s') " , tmpObj->getName ().str (), tmpObj->getTemplate ()->getName ().str ()));
5161
5161
}
5162
5162
}
5163
5163
}
@@ -5433,9 +5433,8 @@ void Pathfinder::processPathfindQueue(void)
5433
5433
timeToUpdate = ((double )(endTime64-startTime64) / (double )(freq64));
5434
5434
if (timeToUpdate>0 .01f )
5435
5435
{
5436
- DEBUG_LOG ((" %d Pathfind queue: %d paths, %d cells" , TheGameLogic->getFrame (), pathsFound, m_cumulativeCellsAllocated));
5437
- DEBUG_LOG ((" Time %f (%f)" , timeToUpdate, (::GetTickCount ()-startTimeMS)/1000 .0f ));
5438
- DEBUG_LOG ((" " ));
5436
+ DEBUG_LOG ((" %d Pathfind queue: %d paths, %d cells --" , TheGameLogic->getFrame (), pathsFound, m_cumulativeCellsAllocated));
5437
+ DEBUG_LOG ((" time %f (%f)" , timeToUpdate, (::GetTickCount ()-startTimeMS)/1000 .0f ));
5439
5438
}
5440
5439
#endif
5441
5440
#endif
@@ -6192,8 +6191,7 @@ Path *Pathfinder::internalFindPath( Object *obj, const LocomotorSet& locomotorSe
6192
6191
Bool valid;
6193
6192
valid = validMovementPosition ( isCrusher, obj->getLayer (), locomotorSet, to ) ;
6194
6193
6195
- DEBUG_LOG ((" %d " , TheGameLogic->getFrame ()));
6196
- DEBUG_LOG ((" Pathfind failed from (%f,%f) to (%f,%f), OV %d" , from->x , from->y , to->x , to->y , valid));
6194
+ DEBUG_LOG ((" %d Pathfind failed from (%f,%f) to (%f,%f), OV %d --" , TheGameLogic->getFrame (), from->x , from->y , to->x , to->y , valid));
6197
6195
DEBUG_LOG ((" Unit '%s', time %f, cells %d" , obj->getTemplate ()->getName ().str (), (::GetTickCount ()-startTimeMS)/1000 .0f ,cellCount));
6198
6196
}
6199
6197
#endif
@@ -6810,8 +6808,7 @@ Path *Pathfinder::findGroundPath( const Coord3D *from,
6810
6808
}
6811
6809
#endif
6812
6810
6813
- DEBUG_LOG ((" %d " , TheGameLogic->getFrame ()));
6814
- DEBUG_LOG ((" FindGroundPath failed from (%f,%f) to (%f,%f)" , from->x , from->y , to->x , to->y ));
6811
+ DEBUG_LOG ((" %d FindGroundPath failed from (%f,%f) to (%f,%f) --" , TheGameLogic->getFrame (), from->x , from->y , to->x , to->y ));
6815
6812
DEBUG_LOG ((" time %f" , (::GetTickCount ()-startTimeMS)/1000 .0f ));
6816
6813
6817
6814
#ifdef DUMP_PERF_STATS
@@ -7426,8 +7423,7 @@ Path *Pathfinder::internal_findHierarchicalPath( Bool isHuman, const LocomotorSu
7426
7423
}
7427
7424
#endif
7428
7425
7429
- DEBUG_LOG ((" %d " , TheGameLogic->getFrame ()));
7430
- DEBUG_LOG ((" FindHierarchicalPath failed from (%f,%f) to (%f,%f)" , from->x , from->y , to->x , to->y ));
7426
+ DEBUG_LOG ((" %d FindHierarchicalPath failed from (%f,%f) to (%f,%f) --" , TheGameLogic->getFrame (), from->x , from->y , to->x , to->y ));
7431
7427
DEBUG_LOG ((" time %f" , (::GetTickCount ()-startTimeMS)/1000 .0f ));
7432
7428
7433
7429
#ifdef DUMP_PERF_STATS
@@ -8321,8 +8317,7 @@ Path *Pathfinder::findClosestPath( Object *obj, const LocomotorSet& locomotorSet
8321
8317
}
8322
8318
#endif
8323
8319
8324
- DEBUG_LOG ((" %d " , TheGameLogic->getFrame ()));
8325
- DEBUG_LOG ((" Pathfind(findClosestPath) chugged from (%f,%f) to (%f,%f), --" , from->x , from->y , to->x , to->y ));
8320
+ DEBUG_LOG ((" %d Pathfind(findClosestPath) chugged from (%f,%f) to (%f,%f) --" , TheGameLogic->getFrame (), from->x , from->y , to->x , to->y ));
8326
8321
DEBUG_LOG ((" Unit '%s', time %f" , obj->getTemplate ()->getName ().str (), (::GetTickCount ()-startTimeMS)/1000 .0f ));
8327
8322
#ifdef INTENSE_DEBUG
8328
8323
TheScriptEngine->AppendDebugMessage (" Big path FCP CC" , false );
@@ -8347,8 +8342,7 @@ Path *Pathfinder::findClosestPath( Object *obj, const LocomotorSet& locomotorSet
8347
8342
Bool valid;
8348
8343
valid = validMovementPosition ( isCrusher, obj->getLayer (), locomotorSet, to ) ;
8349
8344
8350
- DEBUG_LOG ((" %d " , TheGameLogic->getFrame ()));
8351
- DEBUG_LOG ((" Pathfind(findClosestPath) failed from (%f,%f) to (%f,%f), original valid %d --" , from->x , from->y , to->x , to->y , valid));
8345
+ DEBUG_LOG ((" Pathfind(findClosestPath) failed from (%f,%f) to (%f,%f), original valid %d --" , TheGameLogic->getFrame (), from->x , from->y , to->x , to->y , valid));
8352
8346
DEBUG_LOG ((" Unit '%s', time %f" , obj->getTemplate ()->getName ().str (), (::GetTickCount ()-startTimeMS)/1000 .0f ));
8353
8347
#endif
8354
8348
#if defined(RTS_DEBUG)
@@ -9741,8 +9735,7 @@ Path *Pathfinder::getMoveAwayFromPath(Object* obj, Object *otherObj,
9741
9735
debugShowSearch (true );
9742
9736
#endif
9743
9737
9744
- DEBUG_LOG ((" %d " , TheGameLogic->getFrame ()));
9745
- DEBUG_LOG ((" getMoveAwayFromPath pathfind failed -- " ));
9738
+ DEBUG_LOG ((" %d getMoveAwayFromPath pathfind failed --" , TheGameLogic->getFrame ()));
9746
9739
DEBUG_LOG ((" Unit '%s', time %f" , obj->getTemplate ()->getName ().str (), (::GetTickCount ()-startTimeMS)/1000 .0f ));
9747
9740
9748
9741
m_isTunneling = false ;
@@ -9920,8 +9913,7 @@ Path *Pathfinder::patchPath( const Object *obj, const LocomotorSet& locomotorSet
9920
9913
}
9921
9914
}
9922
9915
9923
- DEBUG_LOG ((" %d " , TheGameLogic->getFrame ()));
9924
- DEBUG_LOG ((" patchPath Pathfind failed -- " ));
9916
+ DEBUG_LOG ((" %d patchPath Pathfind failed --" , TheGameLogic->getFrame ()));
9925
9917
DEBUG_LOG ((" Unit '%s', time %f" , obj->getTemplate ()->getName ().str (), (::GetTickCount ()-startTimeMS)/1000 .0f ));
9926
9918
9927
9919
#if defined(RTS_DEBUG)
@@ -10221,8 +10213,7 @@ Path *Pathfinder::findAttackPath( const Object *obj, const LocomotorSet& locomot
10221
10213
return path;
10222
10214
}
10223
10215
#if defined(RTS_DEBUG)
10224
- DEBUG_LOG(("%d (%d cells)", TheGameLogic->getFrame(), cellCount));
10225
- DEBUG_LOG(("Attack Pathfind failed from (%f,%f) to (%f,%f) -- ", from->x, from->y, victim->getPosition()->x, victim->getPosition()->y));
10216
+ DEBUG_LOG(("%d (%d cells) Attack Pathfind failed from (%f,%f) to (%f,%f) --", TheGameLogic->getFrame(), cellCount, from->x, from->y, victim->getPosition()->x, victim->getPosition()->y));
10226
10217
DEBUG_LOG(("Unit '%s', attacking '%s' time %f", obj->getTemplate()->getName().str(), victim->getTemplate()->getName().str(), (::GetTickCount()-startTimeMS)/1000.0f));
10227
10218
#endif
10228
10219
#endif
@@ -10382,8 +10373,7 @@ Path *Pathfinder::findSafePath( const Object *obj, const LocomotorSet& locomotor
10382
10373
#endif
10383
10374
#if 0
10384
10375
#if defined(RTS_DEBUG)
10385
- DEBUG_LOG(("%d (%d cells)", TheGameLogic->getFrame(), cellCount));
10386
- DEBUG_LOG(("Attack Pathfind failed from (%f,%f) to (%f,%f) -- ", from->x, from->y, victim->getPosition()->x, victim->getPosition()->y));
10376
+ DEBUG_LOG(("%d (%d cells) Attack Pathfind failed from (%f,%f) to (%f,%f) --", TheGameLogic->getFrame(), cellCount, from->x, from->y, victim->getPosition()->x, victim->getPosition()->y));
10387
10377
DEBUG_LOG(("Unit '%s', attacking '%s' time %f", obj->getTemplate()->getName().str(), victim->getTemplate()->getName().str(), (::GetTickCount()-startTimeMS)/1000.0f));
10388
10378
#endif
10389
10379
#endif
0 commit comments