From 22593f4ace92209e3068bc0b9250f751fa597afd Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 28 Mar 2006 19:04:56 +0000 Subject: 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 --- apps/plugins/doom/p_spec.c | 4 ++-- apps/plugins/doom/p_spec.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugins/doom') 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 // jff 2/23/98 added to prevent old demos from // succeeding in starting multiple specials on one sector // -int P_SectorActive(special_e t,sector_t *sec) +boolean P_SectorActive(special_e t,sector_t *sec) { if (demo_compatibility) // return whether any thinker is active return sec->floordata || sec->ceilingdata || sec->lightingdata; @@ -961,7 +961,7 @@ int P_SectorActive(special_e t,sector_t *sec) case lighting_special: return (sec->lightingdata!=NULL); } - return 1; // don't know which special, must be active, shouldn't be here + return true; // don't know which special, must be active, shouldn't be here } 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 ( line_t* line, player_t* player); -int P_SectorActive +boolean P_SectorActive ( special_e t, sector_t* s ); -- cgit v1.2.3