mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 23:27:37 +00:00
SCI: Fix hoyle hack
svn-id: r45619
This commit is contained in:
parent
26981a5ffc
commit
7f8a8732a1
@ -38,7 +38,7 @@ reg_t kRandom(EngineState *s, int argc, reg_t *argv) {
|
||||
reg_t kAbs(EngineState *s, int argc, reg_t *argv) {
|
||||
// This is a hack, but so is the code in Hoyle1 that needs it.
|
||||
if (argv[0].segment)
|
||||
return make_reg(0, 0x3e8); // Yes people, this is an object
|
||||
return make_reg(0, 0x3e9); // Yes people, this is an object
|
||||
return make_reg(0, abs(argv[0].toSint16()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user