aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/neighborhood/exit.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus/neighborhood/exit.h')
-rwxr-xr-xengines/pegasus/neighborhood/exit.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/pegasus/neighborhood/exit.h b/engines/pegasus/neighborhood/exit.h
index 671f30738f..d3e8d50446 100755
--- a/engines/pegasus/neighborhood/exit.h
+++ b/engines/pegasus/neighborhood/exit.h
@@ -48,8 +48,20 @@ public:
void clear();
struct Entry {
- Entry() { movieStart = 0xffffffff; }
+ Entry() { clear(); }
bool isEmpty() { return movieStart == 0xffffffff; }
+ void clear() {
+ room = kNoRoomID;
+ direction = kNoDirection;
+ altCode = kNoAlternateID;
+ movieStart = 0xffffffff;
+ movieEnd = 0xffffffff;
+ exitEnd = 0xffffffff;
+ originalEnd = 0xffffffff;
+ exitLoop = 0xffffffff;
+ exitRoom = kNoRoomID;
+ exitDirection = kNoDirection;
+ }
tRoomID room;
tDirectionConstant direction;