1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 04:23:20 +01:00

Fix comparison between signed and unsigned integer

This commit is contained in:
Michael Steenbeek
2017-12-12 15:03:18 +01:00
parent a5d4e96aae
commit e9dff344e4
2 changed files with 3 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ void game_handle_input()
if (_inputFlags & INPUT_FLAG_5) {
game_handle_input_mouse(x, y, state);
} else if (x != 0x80000000) {
} else if (x != (sint32)0x80000000) {
sint32 screenWidth = context_get_width();
sint32 screenHeight = context_get_height();
x = Math::Clamp(0, x, screenWidth - 1);