Fix one more batch of compiler warnings.
A few of these were potential bugs.
This commit is contained in:
parent
3dfd8fd09b
commit
06cad9ee1e
14 changed files with 30 additions and 27 deletions
|
|
@ -230,19 +230,20 @@ do_zap(bool gotdir)
|
|||
tp = THINGPTR(item);
|
||||
omonst = tp->t_indx;
|
||||
if (wh == WS_POLYM && !curse) {
|
||||
int newmonst;
|
||||
detach(mlist, item);
|
||||
discard(item);
|
||||
oldch = tp->t_oldch;
|
||||
delta.y = y;
|
||||
delta.x = x;
|
||||
monster = rnd_mon(FALSE, TRUE);
|
||||
item = new_monster(monster, &delta, FALSE);
|
||||
newmonst = rnd_mon(FALSE, TRUE);
|
||||
item = new_monster(newmonst, &delta, FALSE);
|
||||
if (!(tp->t_flags & ISRUN))
|
||||
runto(&delta, &hero);
|
||||
if (isalpha(mvwinch(cw, y, x)))
|
||||
mvwaddch(cw, y, x, monsters[monster].m_show);
|
||||
mvwaddch(cw, y, x, monsters[newmonst].m_show);
|
||||
tp->t_oldch = oldch;
|
||||
ws_know[WS_POLYM] |= (monster != omonst);
|
||||
ws_know[WS_POLYM] |= (newmonst != omonst);
|
||||
}
|
||||
else if (wh == WS_MINVIS && !bless) {
|
||||
tp->t_flags |= ISINVIS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue