aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/runtime.h3
-rw-r--r--engines/dreamweb/sprite.cpp4
-rw-r--r--engines/dreamweb/stubs.h2
3 files changed, 3 insertions, 6 deletions
diff --git a/engines/dreamweb/runtime.h b/engines/dreamweb/runtime.h
index db74c19055..38599d209d 100644
--- a/engines/dreamweb/runtime.h
+++ b/engines/dreamweb/runtime.h
@@ -37,9 +37,6 @@ namespace DreamWeb {
namespace DreamGen {
-//fixme: name clash
-#undef random
-
struct Register {
union {
uint16 _value;
diff --git a/engines/dreamweb/sprite.cpp b/engines/dreamweb/sprite.cpp
index a2763aeed5..5eddb1ca57 100644
--- a/engines/dreamweb/sprite.cpp
+++ b/engines/dreamweb/sprite.cpp
@@ -265,7 +265,7 @@ void DreamGenContext::backObject(Sprite *sprite) {
if (objData->type == 6)
wideDoor(sprite, objData);
else if (objData->type == 5)
- random(sprite, objData);
+ randomSprite(sprite, objData);
else if (objData->type == 4)
lockedDoorway(sprite, objData);
else if (objData->type == 3)
@@ -288,7 +288,7 @@ void DreamGenContext::constant(Sprite *sprite, SetObject *objData) {
sprite->frameNumber = frame;
}
-void DreamGenContext::random(Sprite *sprite, SetObject *objData) {
+void DreamGenContext::randomSprite(Sprite *sprite, SetObject *objData) {
uint8 r = engine->randomNumber();
sprite->frameNumber = objData->frames[r&7];
}
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index e2edd897b6..05b3b3adbe 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -118,7 +118,7 @@
void backObject();
void constant(Sprite *sprite, SetObject *objData);
void steady(Sprite *sprite, SetObject *objData);
- void random(Sprite *sprite, SetObject *objData);
+ void randomSprite(Sprite *sprite, SetObject *objData);
void doDoor(Sprite *sprite, SetObject *objData, Common::Rect check);
void doorway(Sprite *sprite, SetObject *objData);
void wideDoor(Sprite *sprite, SetObject *objData);