Skip to content

Commit

Permalink
keep SDK code Success
Browse files Browse the repository at this point in the history
Should not include EGL headers
  • Loading branch information
glKarin committed Feb 18, 2024
1 parent ebc9b42 commit 9fbe7c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Q3E/src/main/jni/doom3/neo/quake4/ai/AI_Move.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3889,10 +3889,10 @@ class rvPathFinder {

/*
=====================
success
Success
=====================
*/
bool success(visitNode* node) {
bool Success(visitNode* node) {
static idVec3 edgeA;
static idVec3 edgeB;
static idVec3 intersect;
Expand Down Expand Up @@ -4384,13 +4384,13 @@ class rvPathFinder {
// Test For Any Obstacles In The Way
//-----------------------------------
if (!obstacleFinder.RayTrace(0.0f, myArea, myMove->myPos, myMove->goalPos, 0/*CDR_TODO: Get myAASNum*/, myIgnoreEntity, myIgnoreEntity2)) {
return success(NULL);
return Success(NULL);
}

// If There Is An Obstacle But We Think We Can Steer Around It, Then We've Still Succeeded
//-----------------------------------------------------------------------------------------
if (obstacleFinder.contact.v1Valid || obstacleFinder.contact.v2Valid) {
return success(NULL);
return Success(NULL);
}
}

Expand Down Expand Up @@ -4420,13 +4420,13 @@ class rvPathFinder {
// Test For Any Obstacles In The Way
//-----------------------------------
if (!obstacleFinder.RayTrace(0.0f, goalArea, GetSeekPosition(next), myMove->goalPos, 0/*CDR_TODO: Get myAASNum*/, myIgnoreEntity, myIgnoreEntity2)) {
return success(next);
return Success(next);
}

// Or If There Is An Obstacle, But One Of The Verts Is Valid, Then This Is Still A Safe Course
//---------------------------------------------------------------------------------------------
if (obstacleFinder.contact.v1Valid || obstacleFinder.contact.v2Valid) {
return success(next);
return Success(next);
}

// Visit All Reaches In The Next Area
Expand Down

0 comments on commit 9fbe7c1

Please sign in to comment.