diff options
author | Torbjörn Andersson | 2003-10-10 16:14:52 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-10-10 16:14:52 +0000 |
commit | ade93aabffb38f96fb70856111c742b91e8c71ae (patch) | |
tree | 3a7b64c9d856a27647408685eb3f8a5f949290e3 /sword2/sync.cpp | |
parent | bd5f50496a450f6e7b5363923e12adf5787b2e92 (diff) | |
download | scummvm-rg350-ade93aabffb38f96fb70856111c742b91e8c71ae.tar.gz scummvm-rg350-ade93aabffb38f96fb70856111c742b91e8c71ae.tar.bz2 scummvm-rg350-ade93aabffb38f96fb70856111c742b91e8c71ae.zip |
cleanup
svn-id: r10728
Diffstat (limited to 'sword2/sync.cpp')
-rw-r--r-- | sword2/sync.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sword2/sync.cpp b/sword2/sync.cpp index c77059f02b..0e25e4d29a 100644 --- a/sword2/sync.cpp +++ b/sword2/sync.cpp @@ -34,7 +34,7 @@ typedef struct { // there wont be many will there. probably 2 at most i reckon #define MAX_syncs 10 -_sync_unit sync_list[MAX_syncs]; +static _sync_unit sync_list[MAX_syncs]; void Init_sync_system(void) { // set list to 0's @@ -43,8 +43,8 @@ void Init_sync_system(void) { } int32 FN_send_sync(int32 *params) { - //param 0 sync's recipient - //param 1 sync value + // param 0 sync's recipient + // 1 sync value for (int i = 0; i < MAX_syncs; i++) { if (sync_list[i].id == 0) { @@ -76,7 +76,7 @@ void Clear_syncs(uint32 id) { } } -uint32 Get_sync(void) { +bool Get_sync(void) { // check for a sync waiting for this character // - called from system code eg. from inside FN_anim(), to see if // animation to be quit @@ -84,12 +84,12 @@ uint32 Get_sync(void) { for (int i = 0; i < MAX_syncs; i++) { if (sync_list[i].id == ID) { // means sync found - return 1; + return true; } } // no sync found - return 0; + return false; } int32 FN_get_sync(int32 *params) { |