summaryrefslogtreecommitdiff
path: root/src/strife/p_map.c
diff options
context:
space:
mode:
authorSimon Howard2015-02-20 00:03:15 -0500
committerSimon Howard2015-02-20 00:03:15 -0500
commit1f5ce047ad6cb709f746b794b4a2dea9e2f89fb6 (patch)
tree273878bb2a6288122a4efd4f012dbbd611f82500 /src/strife/p_map.c
parent714d7a29397b44fcb2b1fef2d675d296cb984264 (diff)
downloadchocolate-doom-1f5ce047ad6cb709f746b794b4a2dea9e2f89fb6.tar.gz
chocolate-doom-1f5ce047ad6cb709f746b794b4a2dea9e2f89fb6.tar.bz2
chocolate-doom-1f5ce047ad6cb709f746b794b4a2dea9e2f89fb6.zip
Fix game code that makes false boolean assumptions.
Various bits of code assume that booleans are represented as 32-bit ints and that they can be assigned to from 32-bit values. This isn't true on all systems; fix code that does this to convert to boolean values properly. This is more progress towards fixing #509.
Diffstat (limited to 'src/strife/p_map.c')
-rw-r--r--src/strife/p_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strife/p_map.c b/src/strife/p_map.c
index 13a1bb54..03b57edd 100644
--- a/src/strife/p_map.c
+++ b/src/strife/p_map.c
@@ -384,7 +384,7 @@ boolean PIT_CheckThing (mobj_t* thing)
// check for special pickup
if (thing->flags & MF_SPECIAL)
{
- solid = thing->flags&MF_SOLID;
+ solid = (thing->flags & MF_SOLID) != 0;
if (tmthing->player) // villsa [STRIFE] no longer checks MF_PICKUP flag
{
// can remove thing