[Scummvm-git-logs] scummvm master -> 7e6f2354c2f30e70026fbc233e4ac122e1195315
dreammaster
noreply at scummvm.org
Wed Jun 24 11:22:06 UTC 2026
This automated email contains information about 3 new commits which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
af1554b98e MADS: FOREST: Add missing flags array to savegames
143808f7f3 MADS: FOREST: Replace kernel_save_game calls with engine autosaves
7e6f2354c2 MADS: FOREST: Change walker_visible assignments to true/false
Commit: af1554b98e9e6be377ca5cb5b9e9ad950dbd74b3
https://github.com/scummvm/scummvm/commit/af1554b98e9e6be377ca5cb5b9e9ad950dbd74b3
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-06-24T21:21:35+10:00
Commit Message:
MADS: FOREST: Add missing flags array to savegames
Changed paths:
engines/mads/madsv2/engine.cpp
diff --git a/engines/mads/madsv2/engine.cpp b/engines/mads/madsv2/engine.cpp
index 22b7879d63b..e0ed335888c 100644
--- a/engines/mads/madsv2/engine.cpp
+++ b/engines/mads/madsv2/engine.cpp
@@ -54,6 +54,7 @@
#include "mads/madsv2/core/vocab.h"
#include "mads/madsv2/phantom/main.h"
#include "mads/madsv2/forest/extra.h"
+#include "mads/madsv2/forest/global.h"
#include "mads/core/sound_manager.h"
namespace MADS {
@@ -227,6 +228,9 @@ void MADSV2Engine::syncGame(Common::Serializer &s) {
s.syncAsSint16LE(camera_old_y_target);
}
+ if (getGameID() == GType_Forest)
+ s.syncMultipleLE(Forest::flags);
+
for (int i = 0; i < OMR; ++i)
s.syncAsSint16LE(room_state[i]);
s.syncAsSint16LE(previous_room);
Commit: 143808f7f3a3bf53d001168168bb9050f641c710
https://github.com/scummvm/scummvm/commit/143808f7f3a3bf53d001168168bb9050f641c710
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-06-24T21:21:35+10:00
Commit Message:
MADS: FOREST: Replace kernel_save_game calls with engine autosaves
Changed paths:
engines/mads/madsv2/core/kernel.h
engines/mads/madsv2/forest/rooms/room104.cpp
engines/mads/madsv2/forest/rooms/room107.cpp
engines/mads/madsv2/forest/rooms/room503.cpp
engines/mads/madsv2/forest/rooms/room509.cpp
engines/mads/madsv2/forest/rooms/room510.cpp
engines/mads/madsv2/forest/rooms/room520.cpp
diff --git a/engines/mads/madsv2/core/kernel.h b/engines/mads/madsv2/core/kernel.h
index 48aa7a90512..7b2b369bda3 100644
--- a/engines/mads/madsv2/core/kernel.h
+++ b/engines/mads/madsv2/core/kernel.h
@@ -631,10 +631,6 @@ extern void kernel_random_frame(int handle, int16 *frame, int mode);
extern void kernel_translate_anim(int handle, int delta_x, int delta_y, int delta_scale);
extern void kernel_position_anim(int handle, int x, int y, int scale, int depth);
-inline void kernel_save_game(const char *buf) {
- error("TODO: refactor to ScummVM savegame code");
-}
-
} // namespace MADSV2
} // namespace MADS
diff --git a/engines/mads/madsv2/forest/rooms/room104.cpp b/engines/mads/madsv2/forest/rooms/room104.cpp
index f59c25b975f..664b856c63b 100644
--- a/engines/mads/madsv2/forest/rooms/room104.cpp
+++ b/engines/mads/madsv2/forest/rooms/room104.cpp
@@ -36,6 +36,7 @@
#include "mads/madsv2/core/player.h"
#include "mads/madsv2/core/sound.h"
#include "mads/madsv2/core/text.h"
+#include "mads/madsv2/engine.h"
namespace MADS {
namespace MADSV2 {
@@ -802,8 +803,7 @@ static void room_104_daemon() {
}
if (global[g101] != 0 && global[player_hyperwalked] == -1) {
- game_save_name(0);
- kernel_save_game(save_game_buf);
+ g_engine->saveAutosaveIfEnabled();
new_room = 904;
}
diff --git a/engines/mads/madsv2/forest/rooms/room107.cpp b/engines/mads/madsv2/forest/rooms/room107.cpp
index 16b33e474a1..f24f489aa26 100644
--- a/engines/mads/madsv2/forest/rooms/room107.cpp
+++ b/engines/mads/madsv2/forest/rooms/room107.cpp
@@ -27,6 +27,7 @@
#include "mads/madsv2/core/matte.h"
#include "mads/madsv2/core/mouse.h"
#include "mads/madsv2/core/player.h"
+#include "mads/madsv2/engine.h"
namespace MADS {
namespace MADSV2 {
@@ -128,8 +129,7 @@ static void room_107_anim1() {
static void room_107_daemon() {
if (global[player_hyperwalked] == -1) {
- game_save_name(0);
- kernel_save_game(save_game_buf);
+ g_engine->saveAutosaveIfEnabled();
new_room = 904;
}
diff --git a/engines/mads/madsv2/forest/rooms/room503.cpp b/engines/mads/madsv2/forest/rooms/room503.cpp
index faa83c13f2b..207763b324c 100644
--- a/engines/mads/madsv2/forest/rooms/room503.cpp
+++ b/engines/mads/madsv2/forest/rooms/room503.cpp
@@ -36,6 +36,7 @@
#include "mads/madsv2/core/player.h"
#include "mads/madsv2/core/sound.h"
#include "mads/madsv2/core/text.h"
+#include "mads/madsv2/engine.h"
namespace MADS {
namespace MADSV2 {
@@ -1056,8 +1057,7 @@ static void room_503_anim12() {
static void room_503_daemon() {
if (global[g101] != 0 && global[player_hyperwalked] == -1) {
- game_save_name(0);
- kernel_save_game(save_game_buf);
+ g_engine->saveAutosaveIfEnabled();
new_room = 904;
}
diff --git a/engines/mads/madsv2/forest/rooms/room509.cpp b/engines/mads/madsv2/forest/rooms/room509.cpp
index f68df862eb4..a45373c1a1b 100644
--- a/engines/mads/madsv2/forest/rooms/room509.cpp
+++ b/engines/mads/madsv2/forest/rooms/room509.cpp
@@ -27,6 +27,7 @@
#include "mads/madsv2/core/mouse.h"
#include "mads/madsv2/core/player.h"
#include "mads/madsv2/core/sprite.h"
+#include "mads/madsv2/engine.h"
namespace MADS {
namespace MADSV2 {
@@ -80,8 +81,7 @@ static void room_509_init() {
static void room_509_daemon() {
if (global[player_hyperwalked] == -1) {
- game_save_name(0);
- kernel_save_game(save_game_buf);
+ g_engine->saveAutosaveIfEnabled();
new_room = 904;
}
diff --git a/engines/mads/madsv2/forest/rooms/room510.cpp b/engines/mads/madsv2/forest/rooms/room510.cpp
index 5148ec71cd2..37c13098665 100644
--- a/engines/mads/madsv2/forest/rooms/room510.cpp
+++ b/engines/mads/madsv2/forest/rooms/room510.cpp
@@ -31,6 +31,7 @@
#include "mads/madsv2/core/player.h"
#include "mads/madsv2/core/quote.h"
#include "mads/madsv2/core/sprite.h"
+#include "mads/madsv2/engine.h"
namespace MADS {
namespace MADSV2 {
@@ -275,8 +276,7 @@ static void room_510_init() {
static void room_510_daemon() {
if (global[player_hyperwalked] == -1) {
if (global[g102] == 0) {
- game_save_name(0);
- kernel_save_game(save_game_buf);
+ g_engine->saveAutosaveIfEnabled();
}
global[g102] = 0;
new_room = 904;
diff --git a/engines/mads/madsv2/forest/rooms/room520.cpp b/engines/mads/madsv2/forest/rooms/room520.cpp
index d706697cfcc..9fdd2544e70 100644
--- a/engines/mads/madsv2/forest/rooms/room520.cpp
+++ b/engines/mads/madsv2/forest/rooms/room520.cpp
@@ -27,6 +27,7 @@
#include "mads/madsv2/core/mouse.h"
#include "mads/madsv2/core/player.h"
#include "mads/madsv2/core/sprite.h"
+#include "mads/madsv2/engine.h"
namespace MADS {
namespace MADSV2 {
@@ -117,8 +118,7 @@ static void room_520_anim1() {
static void room_520_daemon() {
if (global[player_hyperwalked] == -1) {
- game_save_name(0);
- kernel_save_game(save_game_buf);
+ g_engine->saveAutosaveIfEnabled();
new_room = 904;
}
Commit: 7e6f2354c2f30e70026fbc233e4ac122e1195315
https://github.com/scummvm/scummvm/commit/7e6f2354c2f30e70026fbc233e4ac122e1195315
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-06-24T21:21:35+10:00
Commit Message:
MADS: FOREST: Change walker_visible assignments to true/false
Changed paths:
engines/mads/madsv2/dragonsphere/rooms/room101.cpp
engines/mads/madsv2/dragonsphere/rooms/room909.cpp
engines/mads/madsv2/forest/rooms/room101.cpp
engines/mads/madsv2/forest/rooms/room103.cpp
engines/mads/madsv2/forest/rooms/room104.cpp
engines/mads/madsv2/forest/rooms/room106.cpp
engines/mads/madsv2/forest/rooms/room107.cpp
engines/mads/madsv2/forest/rooms/room201.cpp
engines/mads/madsv2/forest/rooms/room203.cpp
engines/mads/madsv2/forest/rooms/room204.cpp
engines/mads/madsv2/forest/rooms/room205.cpp
engines/mads/madsv2/forest/rooms/room210.cpp
engines/mads/madsv2/forest/rooms/room211.cpp
engines/mads/madsv2/forest/rooms/room220.cpp
engines/mads/madsv2/forest/rooms/room301.cpp
engines/mads/madsv2/forest/rooms/room302.cpp
engines/mads/madsv2/forest/rooms/room303.cpp
engines/mads/madsv2/forest/rooms/room304.cpp
engines/mads/madsv2/forest/rooms/room305.cpp
engines/mads/madsv2/forest/rooms/room306.cpp
engines/mads/madsv2/forest/rooms/room307.cpp
engines/mads/madsv2/forest/rooms/room308.cpp
engines/mads/madsv2/forest/rooms/room321.cpp
engines/mads/madsv2/forest/rooms/room322.cpp
engines/mads/madsv2/forest/rooms/room401.cpp
engines/mads/madsv2/forest/rooms/room402.cpp
engines/mads/madsv2/forest/rooms/room403.cpp
engines/mads/madsv2/forest/rooms/room404.cpp
engines/mads/madsv2/forest/rooms/room405.cpp
engines/mads/madsv2/forest/rooms/room420.cpp
engines/mads/madsv2/forest/rooms/room501.cpp
engines/mads/madsv2/forest/rooms/room503.cpp
engines/mads/madsv2/forest/rooms/room509.cpp
engines/mads/madsv2/forest/rooms/room510.cpp
engines/mads/madsv2/forest/rooms/room520.cpp
engines/mads/madsv2/forest/rooms/room904.cpp
diff --git a/engines/mads/madsv2/dragonsphere/rooms/room101.cpp b/engines/mads/madsv2/dragonsphere/rooms/room101.cpp
index 62b718cd48e..50aee43aced 100644
--- a/engines/mads/madsv2/dragonsphere/rooms/room101.cpp
+++ b/engines/mads/madsv2/dragonsphere/rooms/room101.cpp
@@ -166,7 +166,7 @@ static void room_101_init() {
if (!player.been_here_before || !conv_restore_running) {
scratch.king_action = 1;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch.pending_king_action = 0;
scratch.king_anim_mode = 3;
@@ -212,7 +212,7 @@ static void room_101_init() {
kernel_seq_depth(seq[fx_door], 12);
if (scratch.king_action == 1) {
- player.walker_visible = 0;
+ player.walker_visible = false;
aa[1] = kernel_run_animation(kernel_name('C', -1), 0);
}
}
@@ -541,7 +541,7 @@ static void room_101_parser() {
switch (kernel.trigger) {
case 0:
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
seq[fx_open_door] = kernel_seq_pingpong(ss[fx_open_door], false, 7, 0, 0, 2);
kernel_seq_player(seq[fx_open_door], -1);
kernel_seq_trigger(seq[fx_open_door], 2, 2, 1);
@@ -561,7 +561,7 @@ static void room_101_parser() {
kernel_synch(1, seq[fx_door], 1, scratch.prev_door_seq);
goto handled;
case 3:
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(2, 0, 1, seq[fx_open_door]);
player_walk(319, 129, 6);
player.walk_off_edge_to_room = 102;
@@ -581,12 +581,12 @@ static void room_101_parser() {
switch (kernel.trigger) {
case 0:
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch.queen_anim_mode = 1;
aa[0] = kernel_run_animation(kernel_name(97, -1), 1);
goto handled;
case 1:
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(2, 0, 3, aa[0]);
if (!(global[player_score_flags] & 2)) {
global[player_score_flags] |= 2;
diff --git a/engines/mads/madsv2/dragonsphere/rooms/room909.cpp b/engines/mads/madsv2/dragonsphere/rooms/room909.cpp
index 49f4563215c..949aea0b46d 100644
--- a/engines/mads/madsv2/dragonsphere/rooms/room909.cpp
+++ b/engines/mads/madsv2/dragonsphere/rooms/room909.cpp
@@ -72,7 +72,7 @@ static Scratch scratch;
static void room_909_init() {
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
viewing_at_y = 22;
kernel_init_dialog();
kernel_set_interface_mode(2);
diff --git a/engines/mads/madsv2/forest/rooms/room101.cpp b/engines/mads/madsv2/forest/rooms/room101.cpp
index 9deaa11e846..08e11d5a938 100644
--- a/engines/mads/madsv2/forest/rooms/room101.cpp
+++ b/engines/mads/madsv2/forest/rooms/room101.cpp
@@ -60,7 +60,7 @@ struct Scratch {
int16 _a6;
int16 _a8;
int16 _aa;
- int16 _ac;
+ int16 _startCutsceneCtr;
int16 _ae;
int16 _b0;
int16 _b2;
@@ -126,7 +126,7 @@ static void room_101_init2() {
aa[6] = kernel_run_animation(kernel_name('b', 1), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac = 1;
+ scratch._startCutsceneCtr = 1;
}
static void room_101_init3() {
@@ -182,7 +182,7 @@ static void room_101_init3() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
@@ -194,7 +194,7 @@ static void room_101_init3() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g009] = 0;
aainfo[5]._active = -1;
aa[5] = kernel_run_animation(kernel_name('b', 8), 111);
@@ -209,7 +209,7 @@ static void room_101_init3() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_101_init() {
@@ -285,7 +285,7 @@ static void room_101_anim1() {
return;
aainfo[6]._frame = frame;
- switch (scratch._ac) {
+ switch (scratch._startCutsceneCtr) {
case 2:
if (frame == 1) {
aainfo[6]._val3 = 10;
@@ -476,7 +476,7 @@ static void room_101_anim7() {
player.x = 96;
player.y = 140;
player.facing = 3;
- player.walker_visible = -1;
+ player.walker_visible = true;
player.commands_allowed = -1;
mouse_show();
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -694,7 +694,7 @@ static void room_101_daemon() {
case 69:
global[g154] = 0;
kernel_abort_animation(scratch._a8);
- player.walker_visible = -1;
+ player.walker_visible = true;
scratch._b2 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
kernel_timing_trigger(45, 109);
@@ -720,7 +720,7 @@ static void room_101_daemon() {
scratch._aa = 49;
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._a8 = kernel_run_animation_talk('b', 6, 0);
kernel_position_anim(scratch._a8, player.x, player.y, player.scale, player.depth);
scratch._b2 = -1;
@@ -731,7 +731,7 @@ static void room_101_daemon() {
case 13:
scratch._aa = 69;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
global[g154] = 2;
scratch._a8 = kernel_run_animation_talk('b', 4, 0);
@@ -769,27 +769,28 @@ static void room_101_daemon() {
break;
case 104:
- switch (scratch._ac) {
+ // First cutscene at start of game
+ switch (scratch._startCutsceneCtr) {
case 1:
kernel_abort_animation(aa[6]);
aa[6] = kernel_run_animation(kernel_name('b', 2), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac++;
+ scratch._startCutsceneCtr++;
break;
case 2:
kernel_abort_animation(aa[6]);
aa[6] = kernel_run_animation(kernel_name('b', 3), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac++;
+ scratch._startCutsceneCtr++;
break;
case 3:
kernel_abort_animation(aa[6]);
aa[6] = kernel_run_animation(kernel_name('r', 1), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac++;
+ scratch._startCutsceneCtr++;
break;
case 4:
kernel_abort_animation(aa[6]);
@@ -800,7 +801,7 @@ static void room_101_daemon() {
aa[6] = kernel_run_animation(kernel_name('e', 1), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac++;
+ scratch._startCutsceneCtr++;
break;
case 5:
kernel_seq_delete(seq[3]);
@@ -809,7 +810,7 @@ static void room_101_daemon() {
aa[6] = kernel_run_animation(kernel_name('e', 2), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac++;
+ scratch._startCutsceneCtr++;
break;
case 6:
kernel_abort_animation(aa[6]);
@@ -820,32 +821,32 @@ static void room_101_daemon() {
aa[6] = kernel_run_animation(kernel_name('b', 4), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac++;
+ scratch._startCutsceneCtr++;
break;
case 7:
kernel_abort_animation(aa[6]);
aa[6] = kernel_run_animation(kernel_name('b', 5), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac++;
+ scratch._startCutsceneCtr++;
break;
case 8:
kernel_abort_animation(aa[6]);
aa[6] = kernel_run_animation(kernel_name('b', 6), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac++;
+ scratch._startCutsceneCtr++;
break;
case 9:
kernel_abort_animation(aa[6]);
aa[6] = kernel_run_animation(kernel_name('b', 9), 104);
aainfo[6]._active = -1;
scratch._9c = 1;
- scratch._ac++;
+ scratch._startCutsceneCtr++;
break;
case 10:
aainfo[7]._val3 = 8;
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
flags[0] = 2;
flags[1] = 0;
@@ -866,7 +867,7 @@ static void room_101_daemon() {
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_NOW, 0);
kernel_reset_animation(scratch._a6, 1);
kernel_synch(KERNEL_ANIM, scratch._a6, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -954,7 +955,7 @@ static void room_101_daemon() {
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_NOW, 0);
kernel_reset_animation(scratch._a6, 1);
kernel_synch(KERNEL_ANIM, scratch._a6, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -1070,7 +1071,7 @@ static void room_101_parser() {
if (player_parse(13, 149, 0)) {
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel.trigger_setup_mode = 1;
aainfo[5]._active = -1;
aa[5] = kernel_run_animation(kernel_name('b', 5), 111);
@@ -1101,7 +1102,7 @@ void room_101_synchronize(Common::Serializer &s) {
s.syncAsSint16LE(scratch._a6);
s.syncAsSint16LE(scratch._a8);
s.syncAsSint16LE(scratch._aa);
- s.syncAsSint16LE(scratch._ac);
+ s.syncAsSint16LE(scratch._startCutsceneCtr);
s.syncAsSint16LE(scratch._ae);
s.syncAsSint16LE(scratch._b0);
s.syncAsSint16LE(scratch._b2);
diff --git a/engines/mads/madsv2/forest/rooms/room103.cpp b/engines/mads/madsv2/forest/rooms/room103.cpp
index b1deabd7844..99c8fbebc78 100644
--- a/engines/mads/madsv2/forest/rooms/room103.cpp
+++ b/engines/mads/madsv2/forest/rooms/room103.cpp
@@ -74,7 +74,7 @@ static void room_103_init() {
global[player_score] = -1;
global[g009] = -1;
viewing_at_y = 22;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
for (int count = 0; count < 10; count++) {
diff --git a/engines/mads/madsv2/forest/rooms/room104.cpp b/engines/mads/madsv2/forest/rooms/room104.cpp
index 664b856c63b..bd92745d46b 100644
--- a/engines/mads/madsv2/forest/rooms/room104.cpp
+++ b/engines/mads/madsv2/forest/rooms/room104.cpp
@@ -96,7 +96,7 @@ static void room_104_init() {
}
if (previous_room != -2 && previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
if (flags[4] != 3)
flags[4]++;
@@ -153,7 +153,7 @@ static void room_104_init1() {
global[g009] = -1;
global_midi_play(8);
viewing_at_y = 22;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
mouse_hide();
@@ -171,7 +171,7 @@ static void room_104_init2() {
global[g009] = 0;
midi_stop();
viewing_at_y = 22;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
mouse_hide();
@@ -230,7 +230,7 @@ static void room_104_init3() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
} else {
if (global[g101] != 0) return;
global[g131] = -1;
@@ -240,7 +240,7 @@ static void room_104_init3() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
}
@@ -856,7 +856,7 @@ static void room_104_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room106.cpp b/engines/mads/madsv2/forest/rooms/room106.cpp
index 05ae6c117f8..406817c2d25 100644
--- a/engines/mads/madsv2/forest/rooms/room106.cpp
+++ b/engines/mads/madsv2/forest/rooms/room106.cpp
@@ -108,7 +108,7 @@ static void room_106_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -141,7 +141,7 @@ static void room_106_init1() {
global[player_score] = -1;
global[g009] = -1;
viewing_at_y = 22;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
for (int16 i = 0; i < 10; i++) {
@@ -193,7 +193,7 @@ static void room_106_init2() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
case 201:
aa[0] = kernel_run_animation(kernel_name('y', 2), 100);
@@ -213,7 +213,7 @@ static void room_106_init2() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
}
@@ -484,7 +484,7 @@ static void room_106_daemon() {
global[g154] = 0;
scratch._aa = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 8;
} else if (scratch._ae == 99) {
@@ -492,7 +492,7 @@ static void room_106_daemon() {
scratch._ae = -1;
scratch._aa = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 7;
} else if (scratch._ae == 1000) {
@@ -573,7 +573,7 @@ static void room_106_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -611,7 +611,7 @@ static void room_106_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -723,7 +723,7 @@ static void room_106_parser() {
if (player_parse(125, 0)) {
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._a6 = kernel_run_animation_talk('b', 3, 0);
kernel_position_anim(scratch._a6, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._a6, KERNEL_PLAYER, 0);
@@ -743,7 +743,7 @@ static void room_106_parser() {
if (player_parse(27, 84, 0) && global[g022] == 0) {
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._a6 = kernel_run_animation_talk('b', 9, 0);
kernel_position_anim(scratch._a6, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._a6, KERNEL_PLAYER, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room107.cpp b/engines/mads/madsv2/forest/rooms/room107.cpp
index f24f489aa26..2ec4f8bc8de 100644
--- a/engines/mads/madsv2/forest/rooms/room107.cpp
+++ b/engines/mads/madsv2/forest/rooms/room107.cpp
@@ -77,7 +77,7 @@ static void room_107_init() {
viewing_at_y = 22;
global[player_score] = 0;
global[g009] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
mouse_hide();
diff --git a/engines/mads/madsv2/forest/rooms/room201.cpp b/engines/mads/madsv2/forest/rooms/room201.cpp
index 3d50bbcb4aa..a9178a34523 100644
--- a/engines/mads/madsv2/forest/rooms/room201.cpp
+++ b/engines/mads/madsv2/forest/rooms/room201.cpp
@@ -135,7 +135,7 @@ static void room_201_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
default:
global[g131] = -1;
@@ -145,7 +145,7 @@ static void room_201_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
}
@@ -155,7 +155,7 @@ static void room_201_init() {
scratch._a4 = -1;
if (previous_room != KERNEL_RESTORING_GAME && previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -210,7 +210,7 @@ static void room_201_anim2() {
kernel_abort_animation(scratch._a2);
scratch._a4 = -1;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
aainfo[1]._active = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
global[g131] = -1;
@@ -419,7 +419,7 @@ static void room_201_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
global[g156] = 2;
global[g131] = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
aainfo[1]._active = -1;
global[g133] = 1;
scratch._a2 = kernel_run_animation_talk('e', 1, 0);
@@ -435,7 +435,7 @@ static void room_201_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -483,7 +483,7 @@ static void room_201_daemon() {
scratch._a4 = -1;
scratch._a6 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._a8 = 1;
break;
@@ -492,7 +492,7 @@ static void room_201_daemon() {
scratch._a4 = -1;
scratch._a6 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._a8 = 2;
break;
@@ -584,7 +584,7 @@ static void room_201_parser() {
if (player_parse(93, 0)) {
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._a0 = kernel_run_animation_talk(98, 3, 0);
kernel_position_anim(scratch._a0, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._a0, KERNEL_PLAYER, 0);
@@ -597,7 +597,7 @@ static void room_201_parser() {
if (player_parse(145, 0)) {
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._a0 = kernel_run_animation_talk(98, 4, 0);
kernel_position_anim(scratch._a0, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._a0, KERNEL_PLAYER, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room203.cpp b/engines/mads/madsv2/forest/rooms/room203.cpp
index 0aacaebcf3f..7ce6fec9f6b 100644
--- a/engines/mads/madsv2/forest/rooms/room203.cpp
+++ b/engines/mads/madsv2/forest/rooms/room203.cpp
@@ -148,7 +148,7 @@ static void room_203_init1() {
aainfo[4]._active = -1;
aainfo[4]._frame = 0;
scratch._9c = 63;
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
player.commands_allowed = -1;
kernel_flip_hotspot(168, -1);
@@ -162,7 +162,7 @@ static void room_203_init1() {
aainfo[3]._frame = 25;
kernel_reset_animation(aa[3], 25);
global[g049] = -1;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
kernel_synch(KERNEL_ANIM, aa[3], KERNEL_NOW, 0);
}
@@ -214,7 +214,7 @@ static void room_203_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -704,7 +704,7 @@ static void room_203_anim4() {
kernel_flip_hotspot(168, -1);
kernel_flip_hotspot(170, -1);
kernel_flip_hotspot(169, -1);
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
player.commands_allowed = -1;
if (local->_ae) {
@@ -1723,7 +1723,7 @@ static void room_203_parser() {
aainfo[3]._active = -1;
aainfo[3]._frame = 0;
scratch._98 = 31;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
}
}
@@ -1738,7 +1738,7 @@ static void room_203_parser() {
scratch._90 = 15;
} else {
global[g154] = 2;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._a2 = kernel_run_animation_talk('b', 7, 0);
kernel_position_anim(scratch._a2, player.x, player.y, player.scale, player.depth);
scratch._b4 = -1;
@@ -1757,7 +1757,7 @@ static void room_203_parser() {
aainfo[3]._active = -1;
global[g049] = -1;
aainfo[3]._frame = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
kernel_synch(KERNEL_ANIM, aa[3], KERNEL_NOW, 0);
} else if (player_has(8)) {
@@ -1766,7 +1766,7 @@ static void room_203_parser() {
aainfo[3]._active = -1;
aainfo[3]._frame = 0;
scratch._98 = 31;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
player.commands_allowed = 0;
} else {
diff --git a/engines/mads/madsv2/forest/rooms/room204.cpp b/engines/mads/madsv2/forest/rooms/room204.cpp
index e7f6afd4d99..29884b3de12 100644
--- a/engines/mads/madsv2/forest/rooms/room204.cpp
+++ b/engines/mads/madsv2/forest/rooms/room204.cpp
@@ -122,7 +122,7 @@ static void room_204_init1() {
}
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_204_init() {
@@ -143,7 +143,7 @@ static void room_204_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -199,7 +199,7 @@ static void room_204_anim2() {
kernel_abort_animation(scratch._a2);
kernel_abort_animation(scratch._a0);
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g017] = -1;
aainfo[1]._active = 0;
kernel_synch(2, 0, 4, 0);
@@ -406,7 +406,7 @@ trigger_7:
scratch._a8 = 0;
kernel_synch(2, 0, 4, 0);
scratch._a6 = 3;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
goto bottom;
@@ -481,7 +481,7 @@ trigger_100:
global[g143] = 1;
scratch._a4 = 1;
global[g141] = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
aainfo[1]._active = -1;
global[g155] = 2;
scratch._a0 = kernel_run_animation_talk('r', 2, 0);
@@ -501,7 +501,7 @@ trigger_100:
global[g143] = 0;
kernel_synch(3, scratch._9a, 4, 0);
kernel_synch(3, scratch._9c, 4, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(2, 0, 4, 0);
player.commands_allowed = -1;
}
diff --git a/engines/mads/madsv2/forest/rooms/room205.cpp b/engines/mads/madsv2/forest/rooms/room205.cpp
index b2e0108edfd..2f449cf91ed 100644
--- a/engines/mads/madsv2/forest/rooms/room205.cpp
+++ b/engines/mads/madsv2/forest/rooms/room205.cpp
@@ -96,7 +96,7 @@ static void room_205_init1() {
viewing_at_y = 22;
flags[10]--;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
aa[6] = kernel_run_animation(kernel_name('t', 1), 104);
aainfo[6]._active = -1;
return;
@@ -128,7 +128,7 @@ static void room_205_init1() {
}
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_205_init() {
@@ -136,7 +136,7 @@ static void room_205_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -192,7 +192,7 @@ static void room_205_anim2() {
kernel_abort_animation(scratch._9e);
kernel_abort_animation(scratch._a2);
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g017] = -1;
aainfo[1]._active = 0;
kernel_synch(2, 0, 4, 0);
@@ -338,7 +338,7 @@ static void room_205_daemon() {
aainfo[1]._active = -1;
global[g141] = -1;
global[g017] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g143] = 0;
kernel_reset_animation(scratch._9c, 1);
kernel_synch(3, scratch._9c, 4, 0);
@@ -360,7 +360,7 @@ static void room_205_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_PLAYER, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_PLAYER, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(2, 0, 4, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room210.cpp b/engines/mads/madsv2/forest/rooms/room210.cpp
index d396fe9f100..809ed2ada5f 100644
--- a/engines/mads/madsv2/forest/rooms/room210.cpp
+++ b/engines/mads/madsv2/forest/rooms/room210.cpp
@@ -88,7 +88,7 @@ static void room_210_init1() {
}
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -148,7 +148,7 @@ static void room_210_init1() {
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_210_init() {
@@ -450,7 +450,7 @@ static void room_210_daemon() {
kernel_synch(KERNEL_ANIM, scratch._a2, KERNEL_NOW, 0);
kernel_reset_animation(scratch._a4, 1);
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0; global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
player.commands_allowed = -1;
@@ -543,7 +543,7 @@ static void room_210_daemon() {
kernel_synch(KERNEL_ANIM, scratch._a2, KERNEL_NOW, 0);
kernel_reset_animation(scratch._a4, 1);
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0; global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
player.commands_allowed = -1;
@@ -560,7 +560,7 @@ static void room_210_daemon() {
kernel_synch(KERNEL_ANIM, scratch._a2, KERNEL_NOW, 0);
kernel_reset_animation(scratch._a4, 1);
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -606,7 +606,7 @@ static void room_210_parser() {
if (player_parse(78, 85, 0)) {
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g150] = -1;
scratch._90 = 1;
player.command_ready = false;
@@ -615,7 +615,7 @@ static void room_210_parser() {
if (player_parse(78, 86, 0)) {
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g150] = -1;
scratch._90 = 2;
player.command_ready = false;
@@ -624,7 +624,7 @@ static void room_210_parser() {
if (player_parse(78, 87, 0)) {
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g150] = -1;
scratch._90 = 3;
player.command_ready = false;
@@ -633,7 +633,7 @@ static void room_210_parser() {
if (player_parse(78, 88, 0)) {
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g150] = -1;
scratch._90 = 4;
player.command_ready = false;
@@ -642,7 +642,7 @@ static void room_210_parser() {
if (player_parse(78, 89, 0)) {
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g150] = -1;
scratch._90 = 5;
player.command_ready = false;
diff --git a/engines/mads/madsv2/forest/rooms/room211.cpp b/engines/mads/madsv2/forest/rooms/room211.cpp
index 759ddaf4749..be5867f711c 100644
--- a/engines/mads/madsv2/forest/rooms/room211.cpp
+++ b/engines/mads/madsv2/forest/rooms/room211.cpp
@@ -55,7 +55,7 @@ static void room_211_init() {
global[player_score] = -1;
viewing_at_y = 22;
global[g009] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
for (int i = 0; i < 10; i++) {
diff --git a/engines/mads/madsv2/forest/rooms/room220.cpp b/engines/mads/madsv2/forest/rooms/room220.cpp
index 75de51dac4d..c96cf0692bf 100644
--- a/engines/mads/madsv2/forest/rooms/room220.cpp
+++ b/engines/mads/madsv2/forest/rooms/room220.cpp
@@ -64,7 +64,7 @@ static void room_220_init() {
global[g009] = -1;
global_midi_play(10);
viewing_at_y = 22;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
for (int i = 0; i < 10; i++) {
diff --git a/engines/mads/madsv2/forest/rooms/room301.cpp b/engines/mads/madsv2/forest/rooms/room301.cpp
index e95322841a4..600eb83fcc3 100644
--- a/engines/mads/madsv2/forest/rooms/room301.cpp
+++ b/engines/mads/madsv2/forest/rooms/room301.cpp
@@ -105,7 +105,7 @@ static void room_301_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
case KERNEL_LAST:
@@ -125,7 +125,7 @@ static void room_301_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
}
@@ -179,7 +179,7 @@ static void room_301_init2() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
case KERNEL_LAST:
@@ -199,7 +199,7 @@ static void room_301_init2() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
}
@@ -233,7 +233,7 @@ static void room_301_init() {
if (previous_room != KERNEL_LAST) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -555,7 +555,7 @@ static void room_301_daemon() {
scratch._aa = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a8 = 1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
} else if (scratch._a4 == 400) {
@@ -564,7 +564,7 @@ static void room_301_daemon() {
scratch._aa = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a8 = 2;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
}
@@ -669,7 +669,7 @@ static void room_301_daemon() {
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
aainfo[1]._active = -1;
global[g017] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g154] = 0;
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
global[g131] = -1;
@@ -697,7 +697,7 @@ static void room_301_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -711,7 +711,7 @@ static void room_301_daemon() {
player.y = 132;
player.facing = 3;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g017] = -1;
aainfo[1]._active = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -721,7 +721,7 @@ static void room_301_daemon() {
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -808,7 +808,7 @@ static void room_301_parser() {
if (player_parse(126, 163, 0)) {
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 2, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
@@ -822,7 +822,7 @@ static void room_301_parser() {
if (player_parse(126, 101, 0)) {
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 4, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room302.cpp b/engines/mads/madsv2/forest/rooms/room302.cpp
index 0986fe1397f..7bc318ae7a3 100644
--- a/engines/mads/madsv2/forest/rooms/room302.cpp
+++ b/engines/mads/madsv2/forest/rooms/room302.cpp
@@ -123,7 +123,7 @@ static void room_302_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
if (previous_room == KERNEL_LAST) {
@@ -144,7 +144,7 @@ static void room_302_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_flip_hotspot(119, global[g048] == 0 ? 1 : 0);
kernel_flip_hotspot(27, global[g048]);
kernel_flip_hotspot(75, global[g067] == 0 ? 1 : 0);
@@ -209,7 +209,7 @@ static void room_302_init() {
if (previous_room != KERNEL_LAST) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -267,7 +267,7 @@ static void room_302_anim2() {
kernel_abort_animation(scratch._a2);
kernel_abort_animation(scratch._9e);
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g017] = -1;
scratch.animation_info[1]._active = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -542,7 +542,7 @@ static void room_302_daemon() {
if (scratch._a4 == 200) {
kernel_abort_animation(scratch._9e);
scratch._a4 = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
scratch._aa = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
global[g150] = -1;
@@ -551,7 +551,7 @@ static void room_302_daemon() {
} else if (scratch._a4 == 400) {
kernel_abort_animation(scratch._9e);
scratch._a4 = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
scratch._aa = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a8 = 1;
@@ -591,7 +591,7 @@ static void room_302_daemon() {
scratch.animation_info[7]._active = -1;
scratch.animation_info[7]._frame = 0;
scratch._96 = 7;
- player.walker_visible = -1;
+ player.walker_visible = true;
player.commands_allowed = 0;
kernel_reset_animation(scratch._9a, 0);
kernel_synch(KERNEL_ANIM, aa[7], KERNEL_ANIM, scratch._9a);
@@ -632,7 +632,7 @@ static void room_302_daemon() {
global[g131] = 0;
global[g141] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
player.commands_allowed = 0;
global[player_score] = 0;
aa[6] = kernel_run_animation(kernel_name('R', 1), 105);
@@ -687,7 +687,7 @@ static void room_302_daemon() {
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a4 = 1;
global[g017] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g154] = 0;
scratch.animation_info[1]._active = -1;
global[g131] = -1;
@@ -715,7 +715,7 @@ static void room_302_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -894,7 +894,7 @@ static void room_302_parser() {
global[g154] = 2;
global[player_score] = 0;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 6, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
@@ -909,7 +909,7 @@ static void room_302_parser() {
global[g154] = 2;
global[player_score] = 0;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 4, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room303.cpp b/engines/mads/madsv2/forest/rooms/room303.cpp
index e1ad2a467b6..d9cb17e1000 100644
--- a/engines/mads/madsv2/forest/rooms/room303.cpp
+++ b/engines/mads/madsv2/forest/rooms/room303.cpp
@@ -435,7 +435,7 @@ static void room_303_init() {
if (previous_room != KERNEL_LAST) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -502,7 +502,7 @@ static void room_303_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
@@ -513,7 +513,7 @@ static void room_303_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_303_init2() {
@@ -558,7 +558,7 @@ static void room_303_init2() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
@@ -569,7 +569,7 @@ static void room_303_init2() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_303_daemon() {
@@ -585,7 +585,7 @@ static void room_303_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -673,7 +673,7 @@ static void room_303_daemon() {
global[walker_converse_now] = 1;
global[g007] = 6;
kernel_synch(KERNEL_ANIM, scratch._aa, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
break;
@@ -697,7 +697,7 @@ static void room_303_daemon() {
scratch._a8 = -1;
scratch._a4 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
player.commands_allowed = -1;
} else if (scratch._a8 == 300) {
dont_frag_the_palette();
@@ -706,7 +706,7 @@ static void room_303_daemon() {
scratch._a4 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a6 = 2;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
} else if (scratch._a8 == 400) {
@@ -716,7 +716,7 @@ static void room_303_daemon() {
scratch._a4 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a6 = 1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
}
@@ -840,7 +840,7 @@ static void room_303_parser() {
if (player_parse(177, 0)) {
global[g154] = 2;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._9e = kernel_run_animation_talk('b', 7, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
@@ -883,7 +883,7 @@ static void room_303_parser() {
global[g154] = 2;
global[player_score] = 0;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 1, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
@@ -898,7 +898,7 @@ static void room_303_parser() {
global[g154] = 2;
global[player_score] = 0;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 3, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room304.cpp b/engines/mads/madsv2/forest/rooms/room304.cpp
index 3edd9ecabe0..85e6f4b94ab 100644
--- a/engines/mads/madsv2/forest/rooms/room304.cpp
+++ b/engines/mads/madsv2/forest/rooms/room304.cpp
@@ -102,7 +102,7 @@ static void room_304_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_304_init() {
@@ -112,7 +112,7 @@ static void room_304_init() {
if (previous_room != KERNEL_LAST) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -143,7 +143,7 @@ static void room_304_restore() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -398,7 +398,7 @@ static void room_304_daemon() {
global[g141] = -1;
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
aa[3] = kernel_run_animation(kernel_name('e', 1), 103);
@@ -468,7 +468,7 @@ static void room_304_daemon() {
kernel_reset_animation(scratch._9c, 0);
kernel_synch(KERNEL_ANIM, aa[2], KERNEL_ANIM, scratch._9c);
global[g143] = 1;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
aa[3] = kernel_run_animation(kernel_name('b', 1), 103);
scratch.animation_info[3]._active = -1;
@@ -483,7 +483,7 @@ static void room_304_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room305.cpp b/engines/mads/madsv2/forest/rooms/room305.cpp
index ba7746f4845..62ddb684b67 100644
--- a/engines/mads/madsv2/forest/rooms/room305.cpp
+++ b/engines/mads/madsv2/forest/rooms/room305.cpp
@@ -112,7 +112,7 @@ static void room_305_init1() {
kernel_reset_animation(scratch._9c, 2);
global[g133] = 0;
global[g143] = 0;
- player.walker_visible = -1;
+ player.walker_visible = true;
player.commands_allowed = -1;
}
@@ -151,7 +151,7 @@ static void room_305_init2() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
@@ -190,7 +190,7 @@ static void room_305_init2() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_305_init() {
@@ -212,7 +212,7 @@ static void room_305_init() {
if (previous_room != KERNEL_LAST) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -789,7 +789,7 @@ static void room_305_daemon() {
scratch._a8 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._aa = 1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
} else if (scratch._a4 == 451) {
@@ -798,7 +798,7 @@ static void room_305_daemon() {
scratch._a4 = -1;
scratch._a8 = 0;
scratch._8c = 3;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g135] = -1;
player.commands_allowed = 0;
}
@@ -894,7 +894,7 @@ static void room_305_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -949,7 +949,7 @@ static void room_305_daemon() {
global[g141] = -1;
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a6 = kernel_run_animation_write(0);
@@ -983,7 +983,7 @@ static void room_305_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -1061,7 +1061,7 @@ static void room_305_parser() {
if (player_parse(28, 0)) {
global[g154] = 2;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._9e = kernel_run_animation_talk('b', 9, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
@@ -1110,7 +1110,7 @@ static void room_305_parser() {
digi_stop(3);
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 1, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room306.cpp b/engines/mads/madsv2/forest/rooms/room306.cpp
index 3eb3d4d2ed9..f972be09496 100644
--- a/engines/mads/madsv2/forest/rooms/room306.cpp
+++ b/engines/mads/madsv2/forest/rooms/room306.cpp
@@ -88,7 +88,7 @@ static void room_306_init1() {
kernel_reset_animation(scratch.x9c, 2);
global[g133] = 0;
global[g143] = 0;
- player.walker_visible = -1;
+ player.walker_visible = true;
player.commands_allowed = -1;
} else {
global[g131] = 0;
@@ -116,7 +116,7 @@ static void room_306_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
if (global[g066] == 3)
@@ -157,7 +157,7 @@ static void room_306_init2() {
kernel_reset_animation(scratch.x9c, 2);
global[g133] = 0;
global[g143] = 0;
- player.walker_visible = -1;
+ player.walker_visible = true;
player.commands_allowed = -1;
} else {
global[g131] = 0;
@@ -188,7 +188,7 @@ static void room_306_init2() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
if (global[g066] == 3)
@@ -248,7 +248,7 @@ static void room_306_init3() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
@@ -266,7 +266,7 @@ static void room_306_init3() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_306_init() {
@@ -283,7 +283,7 @@ static void room_306_init() {
scratch.x9e = -1;
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -414,7 +414,7 @@ static void room_306_anim7() {
case 12: result = imath_random(26, 30); break;
case 13:
result = 31;
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_ANIM, aa[6]);
player_walk(116, 130, 4);
break;
@@ -723,7 +723,7 @@ static void room_306_daemon() {
kernel_abort_animation(scratch.xa8);
scratch.xa2 = 0;
scratch.x9e = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
kernel_timing_trigger(20, 114);
break;
@@ -800,7 +800,7 @@ static void room_306_daemon() {
}
}
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
global[g131] = -1;
global[g141] = -1;
@@ -966,7 +966,7 @@ static void room_306_parser() {
if (player_parse(180, 0)) {
aainfo[2]._val3 = 15;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch.xa8 = kernel_run_animation_talk('b', 9, 0);
kernel_position_anim(scratch.xa8, player.x, player.y, player.scale, player.depth);
global[g154] = 2;
diff --git a/engines/mads/madsv2/forest/rooms/room307.cpp b/engines/mads/madsv2/forest/rooms/room307.cpp
index 5e612f19fba..6b20f83d331 100644
--- a/engines/mads/madsv2/forest/rooms/room307.cpp
+++ b/engines/mads/madsv2/forest/rooms/room307.cpp
@@ -125,7 +125,7 @@ static void room_307_init2() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
case 210:
aa[0] = kernel_run_animation(kernel_name('y', 1), 100);
@@ -152,7 +152,7 @@ static void room_307_init2() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
}
@@ -366,7 +366,7 @@ static void room_307_anim5() {
aainfo[4]._active = 0;
scratch._a0 = 0;
scratch._aa = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g017] = -1;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._9c = kernel_run_animation_disp('r', 9, 0);
@@ -553,7 +553,7 @@ static void room_307_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._aa = 0;
}
@@ -634,7 +634,7 @@ static void room_307_daemon() {
aainfo[1]._active = -1;
scratch._96 = 1;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_reset_animation(scratch._9a, 0);
kernel_reset_animation(scratch._9c, 0);
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_ANIM, aa[1]);
@@ -688,7 +688,7 @@ static void room_307_daemon() {
case 100:
dont_frag_the_palette();
kernel_abort_animation(aa[0]);
- player.walker_visible = -1;
+ player.walker_visible = true;
aainfo[0]._active = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
if (flags[21] == 1) {
@@ -737,7 +737,7 @@ static void room_307_daemon() {
dont_frag_the_palette();
kernel_abort_animation(scratch._9e);
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g135] = -1;
break;
@@ -745,13 +745,13 @@ static void room_307_daemon() {
dont_frag_the_palette();
kernel_abort_animation(scratch._9e);
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._a2 = 3;
break;
case 109:
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._a4 = kernel_run_animation_talk('b', 9, 0);
kernel_position_anim(scratch._a4, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_PLAYER, 0);
@@ -777,7 +777,7 @@ static void room_307_daemon() {
aa[8] = kernel_run_animation(kernel_name('Z', 3), 112);
aainfo[8]._active = -1;
scratch._92 = 100;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
if (player_has(14)) {
kernel_synch(KERNEL_ANIM, aa[8], KERNEL_PLAYER, 0);
@@ -881,7 +881,7 @@ static void room_307_parser() {
if (player_parse(113, 0)) {
global[g154] = 2;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._a4 = kernel_run_animation_talk('b', 2, 0);
kernel_position_anim(scratch._a4, player.x, player.y, player.scale, player.depth);
@@ -894,7 +894,7 @@ static void room_307_parser() {
if (player_parse(28, 0)) {
global[g154] = 2;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._a4 = kernel_run_animation_talk('b', 1, 0);
kernel_position_anim(scratch._a4, player.x, player.y, player.scale, player.depth);
diff --git a/engines/mads/madsv2/forest/rooms/room308.cpp b/engines/mads/madsv2/forest/rooms/room308.cpp
index 527579e8d89..d39e91e2435 100644
--- a/engines/mads/madsv2/forest/rooms/room308.cpp
+++ b/engines/mads/madsv2/forest/rooms/room308.cpp
@@ -977,7 +977,7 @@ static void room_308_init() {
kernel_flip_hotspot(170, 0);
}
- player.walker_visible = 0;
+ player.walker_visible = false;
if (previous_room != KERNEL_RESTORING_GAME) {
aa[9] = 0;
diff --git a/engines/mads/madsv2/forest/rooms/room321.cpp b/engines/mads/madsv2/forest/rooms/room321.cpp
index 7682e0be2f4..d015400d3c6 100644
--- a/engines/mads/madsv2/forest/rooms/room321.cpp
+++ b/engines/mads/madsv2/forest/rooms/room321.cpp
@@ -126,7 +126,7 @@ static void room_321_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_321_init() {
@@ -163,7 +163,7 @@ static void room_321_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -553,7 +553,7 @@ static void room_321_daemon() {
scratch._a4 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a6 = 2;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
break;
@@ -565,7 +565,7 @@ static void room_321_daemon() {
scratch._a4 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a6 = 1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
break;
@@ -663,7 +663,7 @@ static void room_321_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -802,7 +802,7 @@ static void room_321_parser() {
global[g154] = 2;
global[player_score] = 0;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 1, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
@@ -816,7 +816,7 @@ static void room_321_parser() {
global[g154] = 2;
global[player_score] = 0;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 3, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room322.cpp b/engines/mads/madsv2/forest/rooms/room322.cpp
index 9caa8bee037..b69eaa0fb0b 100644
--- a/engines/mads/madsv2/forest/rooms/room322.cpp
+++ b/engines/mads/madsv2/forest/rooms/room322.cpp
@@ -116,7 +116,7 @@ static void room_322_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
@@ -150,7 +150,7 @@ static void room_322_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_322_anim2() {
@@ -394,7 +394,7 @@ static void room_322_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._b4 = 0;
}
@@ -427,7 +427,7 @@ static void room_322_daemon() {
global[g150] = -1;
dont_frag_the_palette();
kernel_abort_animation(scratch._ae);
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
} else if (scratch._b4 == 2) {
kernel_timing_trigger(40, 114);
@@ -469,7 +469,7 @@ static void room_322_daemon() {
aainfo[1]._frame = -1;
scratch._a0 = 1;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_reset_animation(scratch._a4, 0);
kernel_reset_animation(scratch._a6, 0);
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_ANIM, aa[1]);
@@ -497,7 +497,7 @@ static void room_322_daemon() {
} else if (scratch._ac == 3) {
aa[7] = kernel_run_animation(kernel_name('z', 2), 116);
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_reset_animation(scratch._a4, 0);
kernel_reset_animation(scratch._a6, 0);
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_ANIM, aa[7]);
@@ -538,7 +538,7 @@ static void room_322_daemon() {
dont_frag_the_palette();
kernel_abort_animation(scratch._a8);
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g135] = -1;
break;
@@ -546,7 +546,7 @@ static void room_322_daemon() {
dont_frag_the_palette();
kernel_abort_animation(scratch._a8);
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._ac = 4;
break;
@@ -569,7 +569,7 @@ static void room_322_daemon() {
aa[8] = kernel_run_animation("*rm307z3", 112);
aainfo[8]._frame = -1;
scratch._9c = 100;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
if (player_has(14)) {
@@ -633,7 +633,7 @@ static void room_322_daemon() {
kernel_reset_animation(scratch._a4, 1);
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_NOW, 0);
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
break;
@@ -733,7 +733,7 @@ static void room_322_parser() {
if (player_parse(113, 0)) {
global[g154] = 2;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._ae = kernel_run_animation_talk('b', 2, 0);
kernel_position_anim(scratch._ae, player.x, player.y, player.scale, player.depth);
@@ -747,7 +747,7 @@ static void room_322_parser() {
if (player_parse(28, 0)) {
global[g154] = 2;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._ae = kernel_run_animation_talk('b', 1, 0);
kernel_position_anim(scratch._ae, player.x, player.y, player.scale, player.depth);
diff --git a/engines/mads/madsv2/forest/rooms/room401.cpp b/engines/mads/madsv2/forest/rooms/room401.cpp
index 270051af172..83dbfcaae74 100644
--- a/engines/mads/madsv2/forest/rooms/room401.cpp
+++ b/engines/mads/madsv2/forest/rooms/room401.cpp
@@ -105,7 +105,7 @@ static void room_401_anim_state(int16 state) {
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
if (config_file.forest1) {
digi_stop(1);
kernel_timing_trigger(1, 106);
@@ -387,7 +387,7 @@ static void room_401_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
@@ -429,7 +429,7 @@ static void room_401_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_401_init() {
@@ -445,7 +445,7 @@ static void room_401_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -505,7 +505,7 @@ static void room_401_daemon() {
kernel_reset_animation(scratch._9a, 0);
kernel_reset_animation(scratch._9c, 0);
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_ANIM, aa[1]);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_ANIM, aa[1]);
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -530,7 +530,7 @@ static void room_401_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room402.cpp b/engines/mads/madsv2/forest/rooms/room402.cpp
index 95c48e81fed..6c76b58cf1d 100644
--- a/engines/mads/madsv2/forest/rooms/room402.cpp
+++ b/engines/mads/madsv2/forest/rooms/room402.cpp
@@ -156,7 +156,7 @@ static void room_402_init1() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -182,7 +182,7 @@ static void room_402_init() {
global[g009] = -1;
}
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
for (int16 count = 0; count < 10; count++) {
@@ -382,7 +382,7 @@ static void room_402_anim_state() {
global[g143] = 0;
player_demand_facing(3);
player_demand_location(136, 142);
- player.walker_visible = -1;
+ player.walker_visible = true;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
player.commands_allowed = -1;
global[walker_converse_state] = 0;
@@ -657,7 +657,7 @@ static void room_402_daemon() {
global[g133] = 1;
global[g154] = 2;
global[g156] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
break;
@@ -701,7 +701,7 @@ static void room_402_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room403.cpp b/engines/mads/madsv2/forest/rooms/room403.cpp
index 14c3d8e7804..39783f01b3e 100644
--- a/engines/mads/madsv2/forest/rooms/room403.cpp
+++ b/engines/mads/madsv2/forest/rooms/room403.cpp
@@ -108,7 +108,7 @@ static void room_403_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
return;
}
@@ -131,7 +131,7 @@ static void room_403_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
static void room_403_init() {
@@ -164,7 +164,7 @@ static void room_403_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -470,7 +470,7 @@ static void room_403_daemon() {
scratch._a0 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a2 = 2;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
} else if (scratch._a4 == 400) {
@@ -479,7 +479,7 @@ static void room_403_daemon() {
scratch._a0 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a2 = 1;
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g150] = -1;
scratch._90 = 6;
}
@@ -550,7 +550,7 @@ static void room_403_daemon() {
kernel_reset_animation(scratch._9c, 0);
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_ANIM, aa[5]);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_ANIM, aa[5]);
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g133] = 1;
global[g143] = 1;
kernel_timing_trigger(1, 105);
@@ -579,7 +579,7 @@ static void room_403_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -634,7 +634,7 @@ static void room_403_daemon() {
global[g143] = 0;
kernel_reset_animation(scratch._9a, 1);
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
kernel_flip_hotspot(95, 0);
@@ -650,7 +650,7 @@ static void room_403_daemon() {
global[g141] = -1;
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a8 = kernel_run_animation_write(0);
@@ -759,7 +759,7 @@ static void room_403_parser() {
if (player_parse(126, 166, 0)) {
global[g154] = 2;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._9e = kernel_run_animation_talk('b', 2, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
@@ -775,7 +775,7 @@ static void room_403_parser() {
if (player_parse(126, 95, 0)) {
global[g154] = 2;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
scratch._9e = kernel_run_animation_talk('b', 4, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
diff --git a/engines/mads/madsv2/forest/rooms/room404.cpp b/engines/mads/madsv2/forest/rooms/room404.cpp
index 54cb1bd1ac9..04a182bd965 100644
--- a/engines/mads/madsv2/forest/rooms/room404.cpp
+++ b/engines/mads/madsv2/forest/rooms/room404.cpp
@@ -117,7 +117,7 @@ static void room_404_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
} else if (previous_room == 401) {
aa[0] = kernel_run_animation(kernel_name('y', 1), 100);
scratch.animation_info[0]._active = -1;
@@ -138,7 +138,7 @@ static void room_404_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
global[g009] = -1;
@@ -190,7 +190,7 @@ static void room_404_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -524,7 +524,7 @@ static void room_404_daemon() {
scratch._a6 = -1;
scratch._a2 = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
player.commands_allowed = -1;
if (config_file.forest1)
kernel_timing_trigger(1, 110);
@@ -577,7 +577,7 @@ static void room_404_daemon() {
kernel_reset_animation(scratch._9c, 0);
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_ANIM, aa[5]);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_ANIM, aa[5]);
- player.walker_visible = 0;
+ player.walker_visible = false;
global[g133] = 1;
global[g143] = 1;
scratch._a4 = 1;
@@ -616,7 +616,7 @@ static void room_404_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -631,7 +631,7 @@ static void room_404_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -680,7 +680,7 @@ static void room_404_daemon() {
global[g143] = 0;
kernel_reset_animation(scratch._9a, 1);
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
global[g082] = 1;
@@ -704,7 +704,7 @@ static void room_404_daemon() {
global[g143] = 0;
kernel_reset_animation(scratch._9a, 1);
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
global[g081] = -1;
@@ -737,7 +737,7 @@ static void room_404_daemon() {
global[g141] = -1;
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a0 = kernel_run_animation_write(0);
@@ -754,7 +754,7 @@ static void room_404_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -893,7 +893,7 @@ static void room_404_parser() {
if (player_parse(78, 175, 0)) {
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 7, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
@@ -909,7 +909,7 @@ static void room_404_parser() {
if (player_parse(78, 176, 0)) {
global[g154] = 2;
player.commands_allowed = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
scratch._9e = kernel_run_animation_talk('b', 9, 0);
kernel_position_anim(scratch._9e, player.x, player.y, player.scale, player.depth);
kernel_synch(KERNEL_ANIM, scratch._9e, KERNEL_PLAYER, 0);
diff --git a/engines/mads/madsv2/forest/rooms/room405.cpp b/engines/mads/madsv2/forest/rooms/room405.cpp
index 397d6500c30..fbeca6cf153 100644
--- a/engines/mads/madsv2/forest/rooms/room405.cpp
+++ b/engines/mads/madsv2/forest/rooms/room405.cpp
@@ -99,7 +99,7 @@ static void room_405_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
} else if (previous_room == 404) {
global[g009] = -1;
aa[0] = kernel_run_animation(kernel_name('y', 1), 100);
@@ -118,7 +118,7 @@ static void room_405_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
}
@@ -135,7 +135,7 @@ static void room_405_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -327,7 +327,7 @@ static void room_405_daemon() {
global[g143] = 1;
scratch._a0 = 1;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
- player.walker_visible = 0;
+ player.walker_visible = false;
kernel_timing_trigger(1, 106);
}
break;
@@ -360,7 +360,7 @@ static void room_405_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -401,7 +401,7 @@ static void room_405_daemon() {
global[g143] = 0;
kernel_reset_animation(scratch._9a, 1);
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
global[g082] = 1;
@@ -417,7 +417,7 @@ static void room_405_daemon() {
global[g141] = -1;
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._9e = kernel_run_animation_write(0);
diff --git a/engines/mads/madsv2/forest/rooms/room420.cpp b/engines/mads/madsv2/forest/rooms/room420.cpp
index 3ce680f7deb..53745f23bfc 100644
--- a/engines/mads/madsv2/forest/rooms/room420.cpp
+++ b/engines/mads/madsv2/forest/rooms/room420.cpp
@@ -195,7 +195,7 @@ static void room_420_init() {
midi_stop();
global[player_score] = -1;
global[g009] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
for (int16 count = 0; count < 10; count++) {
diff --git a/engines/mads/madsv2/forest/rooms/room501.cpp b/engines/mads/madsv2/forest/rooms/room501.cpp
index 002a4f30897..de66e58e370 100644
--- a/engines/mads/madsv2/forest/rooms/room501.cpp
+++ b/engines/mads/madsv2/forest/rooms/room501.cpp
@@ -85,7 +85,7 @@ static void room_501_init() {
if (previous_room != KERNEL_RESTORING_GAME) {
if (previous_room != 199) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
}
@@ -135,7 +135,7 @@ static void room_501_init1() {
global[g143] = 0;
restore_player();
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
} else if (previous_room == 405) {
if (flags[32] == 1) {
aa[1] = kernel_run_animation(kernel_name('y', 1), 105);
@@ -159,7 +159,7 @@ static void room_501_init1() {
global[g133] = 0;
global[g143] = 0;
player.commands_allowed = -1;
- player.walker_visible = -1;
+ player.walker_visible = true;
}
}
@@ -469,7 +469,7 @@ static void room_501_daemon() {
kernel_synch(KERNEL_ANIM, scratch._9a, KERNEL_NOW, 0);
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g133] = 0;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
@@ -506,7 +506,7 @@ static void room_501_daemon() {
global[g141] = -1;
kernel_reset_animation(scratch._9c, 1);
kernel_synch(KERNEL_ANIM, scratch._9c, KERNEL_NOW, 0);
- player.walker_visible = -1;
+ player.walker_visible = true;
global[g143] = 0;
kernel_synch(KERNEL_PLAYER, 0, KERNEL_NOW, 0);
scratch._a0 = kernel_run_animation_write(0);
diff --git a/engines/mads/madsv2/forest/rooms/room503.cpp b/engines/mads/madsv2/forest/rooms/room503.cpp
index 207763b324c..e1f873b733b 100644
--- a/engines/mads/madsv2/forest/rooms/room503.cpp
+++ b/engines/mads/madsv2/forest/rooms/room503.cpp
@@ -96,7 +96,7 @@ static void room_503_init() {
global[g009] = -1;
if (previous_room != KERNEL_RESTORING_GAME) {
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
for (int count = 0; count < 12; count++) {
@@ -139,7 +139,7 @@ static void room_503_init() {
static void room_503_init1() {
global[player_score] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
if (previous_room == 199) {
@@ -192,7 +192,7 @@ static void room_503_init1() {
static void room_503_init2() {
viewing_at_y = 22;
global[player_score] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
mouse_hide();
scratch._ba = -1;
@@ -202,7 +202,7 @@ static void room_503_init2() {
static void room_503_init3() {
global[player_score] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
if (previous_room == 199) {
diff --git a/engines/mads/madsv2/forest/rooms/room509.cpp b/engines/mads/madsv2/forest/rooms/room509.cpp
index a45373c1a1b..03856bc5c46 100644
--- a/engines/mads/madsv2/forest/rooms/room509.cpp
+++ b/engines/mads/madsv2/forest/rooms/room509.cpp
@@ -67,7 +67,7 @@ static void room_509_init() {
global[g009] = -1;
viewing_at_y = 22;
global[player_score] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
for (int count = 0; count < 10; count++) {
diff --git a/engines/mads/madsv2/forest/rooms/room510.cpp b/engines/mads/madsv2/forest/rooms/room510.cpp
index 37c13098665..1ba2f623f28 100644
--- a/engines/mads/madsv2/forest/rooms/room510.cpp
+++ b/engines/mads/madsv2/forest/rooms/room510.cpp
@@ -243,7 +243,7 @@ static void room_510_init() {
scratch._96 = 0;
scratch._98 = 670;
viewing_at_y = 22;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
mouse_hide();
diff --git a/engines/mads/madsv2/forest/rooms/room520.cpp b/engines/mads/madsv2/forest/rooms/room520.cpp
index 9fdd2544e70..c4affc81f0a 100644
--- a/engines/mads/madsv2/forest/rooms/room520.cpp
+++ b/engines/mads/madsv2/forest/rooms/room520.cpp
@@ -73,7 +73,7 @@ static void room_520_init() {
viewing_at_y = 22;
global[player_score] = 0;
global[g009] = 0;
- player.walker_visible = 0;
+ player.walker_visible = false;
player.commands_allowed = 0;
mouse_hide();
diff --git a/engines/mads/madsv2/forest/rooms/room904.cpp b/engines/mads/madsv2/forest/rooms/room904.cpp
index 46d77f28b34..367967f68c0 100644
--- a/engines/mads/madsv2/forest/rooms/room904.cpp
+++ b/engines/mads/madsv2/forest/rooms/room904.cpp
@@ -115,7 +115,7 @@ static void room_904_init() {
ss[4] = kernel_load_series("*maint5", 0);
kernel_timing_trigger(10, TRIGGER1);
- player.walker_visible = 0;
+ player.walker_visible = false;
}
static void room_904_daemon() {
More information about the Scummvm-git-logs
mailing list