forked from len0rd/rockbox
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
This commit is contained in:
parent
f81c192b3a
commit
22593f4ace
2 changed files with 3 additions and 3 deletions
|
@ -947,7 +947,7 @@ boolean P_CanUnlockGenDoor
|
||||||
// jff 2/23/98 added to prevent old demos from
|
// jff 2/23/98 added to prevent old demos from
|
||||||
// succeeding in starting multiple specials on one sector
|
// 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
|
if (demo_compatibility) // return whether any thinker is active
|
||||||
return sec->floordata || sec->ceilingdata || sec->lightingdata;
|
return sec->floordata || sec->ceilingdata || sec->lightingdata;
|
||||||
|
@ -961,7 +961,7 @@ int P_SectorActive(special_e t,sector_t *sec)
|
||||||
case lighting_special:
|
case lighting_special:
|
||||||
return (sec->lightingdata!=NULL);
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -853,7 +853,7 @@ boolean P_CanUnlockGenDoor
|
||||||
( line_t* line,
|
( line_t* line,
|
||||||
player_t* player);
|
player_t* player);
|
||||||
|
|
||||||
int P_SectorActive
|
boolean P_SectorActive
|
||||||
( special_e t,
|
( special_e t,
|
||||||
sector_t* s );
|
sector_t* s );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue