diff options
| author | noshbar <[email protected]> | 2018-10-10 22:05:13 +0200 |
|---|---|---|
| committer | noshbar <[email protected]> | 2018-10-10 22:05:13 +0200 |
| commit | 1d548eaa4b796f0416247f69074dfeec0264dd71 (patch) | |
| tree | 4f000fe67d64d2da8eeed197b1ff398c3a2f4524 /games/just_do | |
| parent | f238b9ea3c6b2b380a07d37ebe82d7fcde4a1ce1 (diff) | |
| download | raylib-1d548eaa4b796f0416247f69074dfeec0264dd71.tar.gz raylib-1d548eaa4b796f0416247f69074dfeec0264dd71.zip | |
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.
Diffstat (limited to 'games/just_do')
| -rw-r--r-- | games/just_do/screens/screen_level06.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/just_do/screens/screen_level06.c b/games/just_do/screens/screen_level06.c index a5536aa4..ec72d70c 100644 --- a/games/just_do/screens/screen_level06.c +++ b/games/just_do/screens/screen_level06.c @@ -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) { |
