Skip to content

Commit

Permalink
Fixed qvm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SpookyScaryDev committed Sep 16, 2024
1 parent e1accd7 commit c80073a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bot_routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static float EvalPath(fb_path_eval_t *eval, qbool allowRocketJumps, qbool allowH
// don't try and pass through closed doors, unless a button is linked
// TODO hiipe - shouldn't go this way at all - at the moment, bots will get to the door and just stop.
if (BotDoorIsClosed(eval->test_marker) &&
((match_in_progress <= 1 && !k_practice) || !eval->test_marker->fb.T & MARKER_LOOK_BUTTON))
((match_in_progress <= 1 && !k_practice) || !(eval->test_marker->fb.T & MARKER_LOOK_BUTTON)))
{
return PATH_SCORE_NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion src/marker_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ qbool LoadBotRoutingFromFile(void)
fileHandle_t file = -1;
char lineData[128];
char argument[128];
char botFileName[128];

// Load bot definition file: frogbots rely on objects spawning
// markers, so be aware of alternative .ent files
Expand All @@ -432,7 +433,6 @@ qbool LoadBotRoutingFromFile(void)
}
}

char botFileName[128];
strlcpy(botFileName, mapname, sizeof(botFileName));
if (isCTF()) strlcat(botFileName, "_ctf", sizeof(botFileName));
if (file == -1)
Expand Down

0 comments on commit c80073a

Please sign in to comment.