Skip to content

Commit 7d8d642

Browse files
committed
Revert "WIPEOUT: isolate bot code change to CA modes only"
This reverts commit b33c77e.
1 parent d676b58 commit 7d8d642

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/bot_client.c

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,9 @@ void BotClientEntersEvent(gedict_t *self, gedict_t *spawn_pos)
140140
self->fb.last_rndaim_time = 0;
141141
self->fb.wiggle_run_dir = 0;
142142

143-
if (isCA())
144-
{
145-
// Find the nearest navigation marker to the spawn point
146-
// Don't use spawn_pos directly - it's not a navigation marker!
147-
// This is important to prevent bot games from crashing in CA/Wipeout
148-
marker = spawn_pos ? LocateMarker(spawn_pos->s.v.origin) : NULL;
149-
}
150-
else
151-
{
152-
// This is wrong but let's keep it to preserve bot behavior
153-
marker = spawn_pos;
154-
}
143+
// Find the nearest navigation marker to the spawn point
144+
// Don't use spawn_pos directly - it's not a navigation marker!
145+
marker = spawn_pos ? LocateMarker(spawn_pos->s.v.origin) : NULL;
155146
SetMarker(self, marker);
156147

157148
self->fb.arrow = 0;

0 commit comments

Comments
 (0)