diff options
author | Dave Chapman <dave@dchapman.com> | 2006-03-28 19:04:56 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-03-28 19:04:56 +0000 |
commit | 22593f4ace92209e3068bc0b9250f751fa597afd (patch) | |
tree | 802b25f6947d68d0d86b5a1ee566a68aa0eb9376 /apps | |
parent | f81c192b3a7eb13330b37cba4b130a8c0ff3c6e4 (diff) | |
download | rockbox-22593f4ace92209e3068bc0b9250f751fa597afd.tar.gz rockbox-22593f4ace92209e3068bc0b9250f751fa597afd.zip |
Change the type of the P_SectorActive() function to boolean - that's how it is being used.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9323 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/doom/p_spec.c | 4 | ||||
-rw-r--r-- | apps/plugins/doom/p_spec.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/doom/p_spec.c b/apps/plugins/doom/p_spec.c index 8e3c81b76e..6270928de0 100644 --- a/apps/plugins/doom/p_spec.c +++ b/apps/plugins/doom/p_spec.c | |||
@@ -947,7 +947,7 @@ boolean P_CanUnlockGenDoor | |||
947 | // jff 2/23/98 added to prevent old demos from | 947 | // jff 2/23/98 added to prevent old demos from |
948 | // succeeding in starting multiple specials on one sector | 948 | // succeeding in starting multiple specials on one sector |
949 | // | 949 | // |
950 | int P_SectorActive(special_e t,sector_t *sec) | 950 | boolean P_SectorActive(special_e t,sector_t *sec) |
951 | { | 951 | { |
952 | if (demo_compatibility) // return whether any thinker is active | 952 | if (demo_compatibility) // return whether any thinker is active |
953 | return sec->floordata || sec->ceilingdata || sec->lightingdata; | 953 | return sec->floordata || sec->ceilingdata || sec->lightingdata; |
@@ -961,7 +961,7 @@ int P_SectorActive(special_e t,sector_t *sec) | |||
961 | case lighting_special: | 961 | case lighting_special: |
962 | return (sec->lightingdata!=NULL); | 962 | return (sec->lightingdata!=NULL); |
963 | } | 963 | } |
964 | return 1; // don't know which special, must be active, shouldn't be here | 964 | return true; // don't know which special, must be active, shouldn't be here |
965 | } | 965 | } |
966 | 966 | ||
967 | 967 | ||
diff --git a/apps/plugins/doom/p_spec.h b/apps/plugins/doom/p_spec.h index 7a13ad8aa0..426e7db50d 100644 --- a/apps/plugins/doom/p_spec.h +++ b/apps/plugins/doom/p_spec.h | |||
@@ -853,7 +853,7 @@ boolean P_CanUnlockGenDoor | |||
853 | ( line_t* line, | 853 | ( line_t* line, |
854 | player_t* player); | 854 | player_t* player); |
855 | 855 | ||
856 | int P_SectorActive | 856 | boolean P_SectorActive |
857 | ( special_e t, | 857 | ( special_e t, |
858 | sector_t* s ); | 858 | sector_t* s ); |
859 | 859 | ||