From 6413df2f714fa5c11de1c3140dc502fda6d93bbd Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Sun, 18 Feb 2018 17:24:47 -0800 Subject: [PATCH] fix warnings --- main/physics.c | 4 ++-- mem/mem.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/physics.c b/main/physics.c index 8f502688..8b258c76 100644 --- a/main/physics.c +++ b/main/physics.c @@ -384,7 +384,7 @@ if (Dont_move_ai_objects) } //check for correct object segment - if(!get_seg_masks(&obj->pos, obj->segnum, 0, __FILE__, __LINE__).centermask == 0) + if (get_seg_masks(&obj->pos, obj->segnum, 0, __FILE__, __LINE__).centermask != 0) { #ifndef NDEBUG mprintf((0,"Warning: object %d not in given seg!\n",objnum)); @@ -575,7 +575,7 @@ save_p1 = *fq.p1; Assert(!((fate==HIT_WALL) && ((WallHitSeg == -1) || (WallHitSeg > Highest_segment_index)))); - //if(!get_seg_masks(&hit_info.hit_pnt, hit_info.hit_seg, 0, __FILE__, __LINE__).centermask == 0) + //if (get_seg_masks(&hit_info.hit_pnt, hit_info.hit_seg, 0, __FILE__, __LINE__).centermask != 0) // Int3(); save_pos = obj->pos; //save the object's position diff --git a/mem/mem.c b/mem/mem.c index 584d8503..3e9cd7cf 100644 --- a/mem/mem.c +++ b/mem/mem.c @@ -281,7 +281,7 @@ int mem_check_integrity( int block_number ) for (i=0; i