(draw_map): Fix test of player->command->c_flags. Broken code
happened to work because C_MOD is the only flag defined.
This commit is contained in:
parent
bbeab716f4
commit
21dd4cfc0f
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp,
|
|||
if (!confirm("Are you sure you want to revert your bmap? "))
|
||||
return RET_OK;
|
||||
}
|
||||
if (!player->command->c_flags & C_MOD) {
|
||||
if (!(player->command->c_flags & C_MOD)) {
|
||||
logerror("%s command needs C_MOD flag set",
|
||||
player->command->c_form);
|
||||
player->command->c_flags |= C_MOD;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue