mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -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:
@ -132,7 +132,7 @@ void DrawLevel06Screen(void)
|
||||
DrawRectangleRec(movingRecs[i], GRAY);
|
||||
}
|
||||
|
||||
if (!done & (mouseOverNum >= 0)) DrawRectangleLines(movingRecs[mouseOverNum].x - 5, movingRecs[mouseOverNum].y - 5, movingRecs[mouseOverNum].width + 10, movingRecs[mouseOverNum].height + 10, Fade(LIGHTGRAY, 0.8f));
|
||||
if (!done && (mouseOverNum >= 0)) DrawRectangleLines(movingRecs[mouseOverNum].x - 5, movingRecs[mouseOverNum].y - 5, movingRecs[mouseOverNum].width + 10, movingRecs[mouseOverNum].height + 10, Fade(LIGHTGRAY, 0.8f));
|
||||
|
||||
if (levelFinished)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user