mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-28 09:49:18 -05:00
3 minor sample game cleanups:
* changed bitwise & to logical && * removed redundant state check * moved a strcpy inside a NULL check to prevent a crash. NOTE: nothing sensible will happen as a result, but no crash at least.
This commit is contained in:
@ -954,7 +954,7 @@ void UpdateGameplayScreen(void)
|
||||
playerActive = false;
|
||||
killer = 5;
|
||||
}
|
||||
else if (CheckCollisionRecs(bee, player) && (state == FINALFORM) && (state != KICK))
|
||||
else if (CheckCollisionRecs(bee, player) && (state == FINALFORM))
|
||||
{
|
||||
isHitBee = true;
|
||||
beeVelocity = 8;
|
||||
|
||||
Reference in New Issue
Block a user