mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 10:26:40 +00:00
GLK: AGT: Tidy logic to limit AskQuestion result to 16bit int range
This commit is contained in:
parent
44f8181c24
commit
8ac79a7c7b
@ -94,7 +94,7 @@ static long ask_for_number(int n1, int n2) {
|
||||
writestr(s);
|
||||
n = read_number();
|
||||
if (aver < AGX00)
|
||||
n = (integer) n;
|
||||
n = (integer) (n & 0xFFFF);
|
||||
if (n1 == n2 || (n >= n1 && n <= n2)) return n;
|
||||
writeln("");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user