summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-03-28 19:04:56 +0000
committerDave Chapman <dave@dchapman.com>2006-03-28 19:04:56 +0000
commit22593f4ace92209e3068bc0b9250f751fa597afd (patch)
tree802b25f6947d68d0d86b5a1ee566a68aa0eb9376 /apps/plugins
parentf81c192b3a7eb13330b37cba4b130a8c0ff3c6e4 (diff)
downloadrockbox-22593f4ace92209e3068bc0b9250f751fa597afd.zip
rockbox-22593f4ace92209e3068bc0b9250f751fa597afd.tar.gz
rockbox-22593f4ace92209e3068bc0b9250f751fa597afd.tar.bz2
rockbox-22593f4ace92209e3068bc0b9250f751fa597afd.tar.xz
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/plugins')
-rw-r--r--apps/plugins/doom/p_spec.c4
-rw-r--r--apps/plugins/doom/p_spec.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/doom/p_spec.c b/apps/plugins/doom/p_spec.c
index 8e3c81b..6270928 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 7a13ad8..426e7db 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 );