Don't crash on weird bug that's hard to reproduce

main
Cameron Murphy Reikes 2 years ago
parent 86fa62ce1d
commit 78ce158cd8

@ -522,7 +522,8 @@ cpVect player_vel(GameState *gs, Entity *player)
if (potential_seat != NULL && !potential_seat->is_box) if (potential_seat != NULL && !potential_seat->is_box)
{ {
Log("Weird ass motherfucking bug where the seat inside of is an explosion or some shit\n"); Log("Weird ass motherfucking bug where the seat inside of is an explosion or some shit\n");
flight_assert(potential_seat->is_box); return (cpBodyGetVelocity(player->body));
// flight_assert(potential_seat->is_box);
} }
else else
{ {

Loading…
Cancel
Save