Skip to content

Commit 10f8631

Browse files
voidanixRobert Alm Nilsson
andcommitted
Fix -Wint-in-bool-context
The mattrig macro expands the mw argument at one point into: if (curmat != MAT_WATER ? S_SPLASH2 : S_SPLASH1 >= 0) Co-authored-by: Robert Alm Nilsson <rorialni@gmail.com>
1 parent 7a06a78 commit 10f8631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/physics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ namespace physics
10501050
{ \
10511051
int col = (int(mcol[2]*mq) + (int(mcol[1]*mq) << 8) + (int(mcol[0]*mq) << 16)); \
10521052
regularshape(mp, mt, col, 21, 20, mz, mo, ms, 1, 10, 0, 20); \
1053-
if(mw >= 0) playsound(mw, mo, pl); \
1053+
if((mw) >= 0) playsound(mw, mo, pl); \
10541054
}
10551055
if(curmat == MAT_WATER || oldmat == MAT_WATER)
10561056
{

0 commit comments

Comments
 (0)