mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-01 17:52:13 +00:00
- SW: Fix all GCC warning: suggest parentheses around assignment used as truth value [-Wparentheses]
warnings.
Regex to match such conditions: `while (\([\w]+\s?=\s?.+\.Next\(\)\))`.
This commit is contained in:
parent
17de3a08e8
commit
45057ff8a0
5 changed files with 19 additions and 19 deletions
|
@ -4000,7 +4000,7 @@ void DoPlayerWarpToUnderwater(PLAYER* pp)
|
|||
|
||||
// search for DIVE_AREA "over" sprite for reference point
|
||||
SWStatIterator it(STAT_DIVE_AREA);
|
||||
while (over_act = it.Next())
|
||||
while ((over_act = it.Next()))
|
||||
{
|
||||
if ((over_act->sector()->extra & SECTFX_DIVE_AREA) &&
|
||||
over_act->sector()->hasU() &&
|
||||
|
@ -4016,7 +4016,7 @@ void DoPlayerWarpToUnderwater(PLAYER* pp)
|
|||
|
||||
// search for UNDERWATER "under" sprite for reference point
|
||||
it.Reset(STAT_UNDERWATER);
|
||||
while (under_act = it.Next())
|
||||
while ((under_act = it.Next()))
|
||||
{
|
||||
if ((under_act->sector()->extra & SECTFX_UNDERWATER) &&
|
||||
under_act->sector()->hasU() &&
|
||||
|
@ -4070,7 +4070,7 @@ void DoPlayerWarpToSurface(PLAYER* pp)
|
|||
|
||||
// search for UNDERWATER "under" sprite for reference point
|
||||
SWStatIterator it(STAT_UNDERWATER);
|
||||
while (under_act = it.Next())
|
||||
while ((under_act = it.Next()))
|
||||
{
|
||||
if ((under_act->sector()->extra & SECTFX_UNDERWATER) &&
|
||||
under_act->sector()->hasU() &&
|
||||
|
@ -4086,7 +4086,7 @@ void DoPlayerWarpToSurface(PLAYER* pp)
|
|||
|
||||
// search for DIVE_AREA "over" sprite for reference point
|
||||
it.Reset(STAT_DIVE_AREA);
|
||||
while (over_act = it.Next())
|
||||
while ((over_act = it.Next()))
|
||||
{
|
||||
if ((over_act->sector()->extra & SECTFX_DIVE_AREA) &&
|
||||
over_act->sector()->hasU() &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue