aboutsummaryrefslogtreecommitdiff
path: root/sword2/sync.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-07-28 11:21:25 +0000
committerJonathan Gray2003-07-28 11:21:25 +0000
commitc1cbd4605e6a3ae3a28462cdb30482454e1b6da0 (patch)
tree4644905a3160d0c5c34c025f0e12e60eb7f195ef /sword2/sync.cpp
parent9e051fa5070cd70ff0e69faa647ad26f66b64560 (diff)
downloadscummvm-rg350-c1cbd4605e6a3ae3a28462cdb30482454e1b6da0.tar.gz
scummvm-rg350-c1cbd4605e6a3ae3a28462cdb30482454e1b6da0.tar.bz2
scummvm-rg350-c1cbd4605e6a3ae3a28462cdb30482454e1b6da0.zip
fix some VC7 warnings
svn-id: r9240
Diffstat (limited to 'sword2/sync.cpp')
-rw-r--r--sword2/sync.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/sword2/sync.cpp b/sword2/sync.cpp
index b9ae1add1e..6611a80c3a 100644
--- a/sword2/sync.cpp
+++ b/sword2/sync.cpp
@@ -135,14 +135,14 @@ int32 FN_get_sync(int32 *params) //Tony27Nov96
for (j=0;j<MAX_syncs;j++)
- if (sync_list[j].id == ID)
- { RESULT=sync_list[j].sync;
+ if (sync_list[j].id == ID) {
+ RESULT=sync_list[j].sync;
return(IR_CONT); //return sync value waiting
}
RESULT=0;
- if (params);
+ // if (params); what is the point of this... khalek
return(IR_CONT); //no sync found
@@ -163,14 +163,15 @@ int32 FN_wait_sync(int32 *params) //Tony27Nov96
// Zdebug("%d waits", ID);
- for (j=0;j<MAX_syncs;j++)
- if (sync_list[j].id == ID)
- { RESULT=sync_list[j].sync;
+ for (j=0;j<MAX_syncs;j++) {
+ if (sync_list[j].id == ID) {
+ RESULT=sync_list[j].sync;
//Zdebug(" go");
return(IR_CONT); //return sync value waiting
}
+ }
- if (params);
+ // if (params); // what is the point of this... - khalek
return(IR_REPEAT); //back again next cycle