mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 11:00:38 +02:00
Added bot code.
This commit is contained in:
@@ -1182,7 +1182,7 @@ bool idAASLocal::FindNearestGoal( aasGoal_t &goal, int areaNum, const idVec3 ori
|
||||
}
|
||||
|
||||
// if the first area is valid goal, just return the origin
|
||||
if ( callback.TestArea( this, areaNum ) ) {
|
||||
if ( callback.AreaIsGoal( this, areaNum ) ) {
|
||||
goal.areaNum = areaNum;
|
||||
goal.origin = origin;
|
||||
return true;
|
||||
@@ -1330,7 +1330,7 @@ bool idAASLocal::FindNearestGoal( aasGoal_t &goal, int areaNum, const idVec3 ori
|
||||
|
||||
if ( !bestTravelTime || t < bestTravelTime ) {
|
||||
// if the area is not visible to the target
|
||||
if ( callback.TestArea( this, reach->toAreaNum ) ) {
|
||||
if ( callback.AreaIsGoal( this, reach->toAreaNum ) ) {
|
||||
bestTravelTime = t;
|
||||
bestAreaNum = reach->toAreaNum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user