aboutsummaryrefslogtreecommitdiff
path: root/sword2/sync.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-09-27 11:02:58 +0000
committerTorbjörn Andersson2003-09-27 11:02:58 +0000
commit8ad28e3a7e3a4696f05e067ad51f504cda306502 (patch)
tree93c3199f65732d5590b3cab9ae7c7215acef6992 /sword2/sync.cpp
parent5f2d799fd22aa95d3fe075c736574a1941f6a5e8 (diff)
downloadscummvm-rg350-8ad28e3a7e3a4696f05e067ad51f504cda306502.tar.gz
scummvm-rg350-8ad28e3a7e3a4696f05e067ad51f504cda306502.tar.bz2
scummvm-rg350-8ad28e3a7e3a4696f05e067ad51f504cda306502.zip
More cleanup, and I've replaced most - not quite all - of BS2's debug
message functions with our own. We still need to go through them and assign sensible debug levels to them. svn-id: r10422
Diffstat (limited to 'sword2/sync.cpp')
-rw-r--r--sword2/sync.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sword2/sync.cpp b/sword2/sync.cpp
index 68eedc79d8..69426bb42a 100644
--- a/sword2/sync.cpp
+++ b/sword2/sync.cpp
@@ -26,7 +26,7 @@
typedef struct {
uint32 id;
uint32 sync;
-} _sync_unit; // haaaaaaaa
+} _sync_unit;
// there wont be many will there. probably 2 at most i reckon
#define MAX_syncs 10
@@ -45,7 +45,7 @@ int32 FN_send_sync(int32 *params) {
for (int i = 0; i < MAX_syncs; i++) {
if (sync_list[i].id == 0) {
- // Zdebug(" %d sending sync %d to %d", ID, params[1], params[0]);
+ debug(5, " %d sending sync %d to %d", ID, params[1], params[0]);
sync_list[i].id = params[0];
sync_list[i].sync = params[1];
return IR_CONT;
@@ -67,7 +67,7 @@ void Clear_syncs(uint32 id) {
for (int i = 0; i < MAX_syncs; i++) {
if (sync_list[i].id == id) {
- // Zdebug("removing sync %d for %d", i, id);
+ debug(5, "removing sync %d for %d", i, id);
sync_list[i].id = 0;
}
}
@@ -111,12 +111,12 @@ int32 FN_wait_sync(int32 *params) {
// keep calling until a sync recieved
// params none
- // Zdebug("%d waits", ID);
+ debug(5, "FN_wait_sync: %d waits", ID);
for (int i = 0; i < MAX_syncs; i++) {
if (sync_list[i].id == ID) {
// return sync value waiting
- //Zdebug(" go");
+ debug(5, "FN_wait_sync: go");
RESULT = sync_list[i].sync;
return IR_CONT;
}