summaryrefslogtreecommitdiff
path: root/apps/plugins/doom
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom')
-rw-r--r--apps/plugins/doom/p_saveg.c2
-rw-r--r--apps/plugins/doom/p_spec.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/doom/p_saveg.c b/apps/plugins/doom/p_saveg.c
index bf1a2ed..7d012c7 100644
--- a/apps/plugins/doom/p_saveg.c
+++ b/apps/plugins/doom/p_saveg.c
@@ -44,7 +44,7 @@ byte *save_p;
// Pads save_p to a 4-byte boundary
// 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
//
diff --git a/apps/plugins/doom/p_spec.c b/apps/plugins/doom/p_spec.c
index 2876b7f..8e3c81b 100644
--- a/apps/plugins/doom/p_spec.c
+++ b/apps/plugins/doom/p_spec.c
@@ -955,11 +955,11 @@ int P_SectorActive(special_e t,sector_t *sec)
switch (t) // return whether thinker of same type is active
{
case floor_special:
- return (int)sec->floordata;
+ return (sec->floordata!=NULL);
case ceiling_special:
- return (int)sec->ceilingdata;
+ return (sec->ceilingdata!=NULL);
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
}