aboutsummaryrefslogtreecommitdiff
path: root/src/gameScreen.c
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-09-14 00:11:04 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-09-14 00:11:04 -0600
commitb14a7bb1e4e2e71a8fef86fcfec4ad9501768e57 (patch)
treeb4dfb0b946c649583f4eebc8016e1d85c5984625 /src/gameScreen.c
parent3b22489413553e837a7da437b2c3cd69823095ab (diff)
Started laser and fixed world bug
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r--src/gameScreen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gameScreen.c b/src/gameScreen.c
index b004215..c38b06d 100644
--- a/src/gameScreen.c
+++ b/src/gameScreen.c
@@ -49,9 +49,12 @@ void updateGameScreen(Game * game) {
void openGameScreen(Game * game) {
game->screenId = SCREEN_GAME;
- DisableCursor();
+
+ if (game->settings.lockMouse)
+ DisableCursor();
}
void closeGameScreen(Game * game) {
- EnableCursor();
+ if (game->settings.lockMouse)
+ EnableCursor();
}