aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/script.h
diff options
context:
space:
mode:
authorlukaslw2014-05-01 16:40:12 +0200
committerlukaslw2014-06-22 20:07:53 +0200
commit05ef38f7d9f912f8613d56764aa93c85e3365bbc (patch)
treefab266f9242ecd6e53893be58f49fe976c90f5d2 /engines/prince/script.h
parent3751e7ba25088b941eed55ee56e7a67593e32b8d (diff)
downloadscummvm-rg350-05ef38f7d9f912f8613d56764aa93c85e3365bbc.tar.gz
scummvm-rg350-05ef38f7d9f912f8613d56764aa93c85e3365bbc.tar.bz2
scummvm-rg350-05ef38f7d9f912f8613d56764aa93c85e3365bbc.zip
PRINCE: getLightX, getLightY, getShadowScale fix
Diffstat (limited to 'engines/prince/script.h')
-rw-r--r--engines/prince/script.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/prince/script.h b/engines/prince/script.h
index 2a3bb64245..4d3c822ad6 100644
--- a/engines/prince/script.h
+++ b/engines/prince/script.h
@@ -90,9 +90,9 @@ public:
// Some magic numbers for now, data stored in header
uint32 getRoomTableOffset() { return read<uint32>(0); }
uint32 getStartGameOffset() { return read<uint32>(4); }
- int8 getLightX(int locationNr) { return read<int8>(4*15 + locationNr*8); }
- int8 getLightY(int locationNr) { return read<int8>(4*15 + locationNr*8 + 2); }
- uint16 getShadowScale(int locationNr) { return read<uint16>(4*15 + locationNr*8 + 4); }
+ int16 getLightX(int locationNr);
+ int16 getLightY(int locationNr);
+ int32 getShadowScale(int locationNr);
const char *getString(uint32 offset) {
return (const char *)(&_data[offset]);