set_uinwater() bit
Assignment target is a one bit wide bitfield; callers only pass 0 or 1 but guarantee that value fits so that no compiler has reason to complain.
This commit is contained in:
@@ -2091,7 +2091,7 @@ void
|
||||
set_uinwater(in_out)
|
||||
int in_out;
|
||||
{
|
||||
u.uinwater = in_out;
|
||||
u.uinwater = in_out ? 1 : 0;
|
||||
}
|
||||
|
||||
/* extracted from spoteffects; called by spoteffects to check for entering or
|
||||
|
||||
Reference in New Issue
Block a user