forked from len0rd/rockbox
64-bit sim fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9316 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
909b6d2653
commit
cd88582478
2 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ byte *save_p;
|
||||||
|
|
||||||
// Pads save_p to a 4-byte boundary
|
// Pads save_p to a 4-byte boundary
|
||||||
// so that the load/save works on SGI&Gecko.
|
// so that the load/save works on SGI&Gecko.
|
||||||
#define PADSAVEP() do { save_p += (4 - ((int) save_p & 3)) & 3; } while (0)
|
#define PADSAVEP() do { save_p += (4 - ((unsigned long) save_p & 3)) & 3; } while (0)
|
||||||
//
|
//
|
||||||
// P_ArchivePlayers
|
// P_ArchivePlayers
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -955,11 +955,11 @@ int P_SectorActive(special_e t,sector_t *sec)
|
||||||
switch (t) // return whether thinker of same type is active
|
switch (t) // return whether thinker of same type is active
|
||||||
{
|
{
|
||||||
case floor_special:
|
case floor_special:
|
||||||
return (int)sec->floordata;
|
return (sec->floordata!=NULL);
|
||||||
case ceiling_special:
|
case ceiling_special:
|
||||||
return (int)sec->ceilingdata;
|
return (sec->ceilingdata!=NULL);
|
||||||
case lighting_special:
|
case lighting_special:
|
||||||
return (int)sec->lightingdata;
|
return (sec->lightingdata!=NULL);
|
||||||
}
|
}
|
||||||
return 1; // don't know which special, must be active, shouldn't be here
|
return 1; // don't know which special, must be active, shouldn't be here
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue