Need to check ball and chain after we have procesed floor objects.
This commit is contained in:
+7
-7
@@ -672,13 +672,6 @@ unsigned int *stuckid, *steedid;
|
|||||||
if (otmp->owornmask)
|
if (otmp->owornmask)
|
||||||
setworn(otmp, otmp->owornmask);
|
setworn(otmp, otmp->owornmask);
|
||||||
|
|
||||||
if ((uball && !uchain) || (uchain && !uball)) {
|
|
||||||
impossible("restgamestate: lost ball & chain");
|
|
||||||
/* poor man's unpunish() */
|
|
||||||
setworn((struct obj *) 0, W_CHAIN);
|
|
||||||
setworn((struct obj *) 0, W_BALL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* reset weapon so that player will get a reminder about "bashing"
|
/* reset weapon so that player will get a reminder about "bashing"
|
||||||
during next fight when bare-handed or wielding an unconventional
|
during next fight when bare-handed or wielding an unconventional
|
||||||
item; for pick-axe, we aren't able to distinguish between having
|
item; for pick-axe, we aren't able to distinguish between having
|
||||||
@@ -921,6 +914,13 @@ register int fd;
|
|||||||
if (otmp->owornmask)
|
if (otmp->owornmask)
|
||||||
setworn(otmp, otmp->owornmask);
|
setworn(otmp, otmp->owornmask);
|
||||||
|
|
||||||
|
if ((uball && !uchain) || (uchain && !uball)) {
|
||||||
|
impossible("restgamestate: lost ball & chain");
|
||||||
|
/* poor man's unpunish() */
|
||||||
|
setworn((struct obj *) 0, W_CHAIN);
|
||||||
|
setworn((struct obj *) 0, W_BALL);
|
||||||
|
}
|
||||||
|
|
||||||
/* in_use processing must be after:
|
/* in_use processing must be after:
|
||||||
* + The inventory has been read so that freeinv() works.
|
* + The inventory has been read so that freeinv() works.
|
||||||
* + The current level has been restored so billing information
|
* + The current level has been restored so billing information
|
||||||
|
|||||||
Reference in New Issue
Block a user