tweak to #K4026 fix
This commit is contained in:
+4
-1
@@ -215,6 +215,8 @@ remove_worn_item(
|
|||||||
struct obj *obj,
|
struct obj *obj,
|
||||||
boolean unchain_ball) /* whether to unpunish or just unwield */
|
boolean unchain_ball) /* whether to unpunish or just unwield */
|
||||||
{
|
{
|
||||||
|
unsigned oldinuse;
|
||||||
|
|
||||||
if (donning(obj))
|
if (donning(obj))
|
||||||
cancel_don();
|
cancel_don();
|
||||||
if (!obj->owornmask)
|
if (!obj->owornmask)
|
||||||
@@ -235,6 +237,7 @@ remove_worn_item(
|
|||||||
* and defending the game against deliberate hangup when player sees a
|
* and defending the game against deliberate hangup when player sees a
|
||||||
* message about something undesireable followed by --More--.
|
* message about something undesireable followed by --More--.
|
||||||
*/
|
*/
|
||||||
|
oldinuse = obj->in_use;
|
||||||
obj->in_use = 1;
|
obj->in_use = 1;
|
||||||
|
|
||||||
if (obj->owornmask & W_ARMOR) {
|
if (obj->owornmask & W_ARMOR) {
|
||||||
@@ -295,7 +298,7 @@ remove_worn_item(
|
|||||||
* that are affected aren't ones that will be unworn and trigger
|
* that are affected aren't ones that will be unworn and trigger
|
||||||
* the whole mess.
|
* the whole mess.
|
||||||
*/
|
*/
|
||||||
obj->in_use = 0;
|
obj->in_use = oldinuse;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns 1 when something was stolen (or at least, when N should flee now),
|
/* Returns 1 when something was stolen (or at least, when N should flee now),
|
||||||
|
|||||||
Reference in New Issue
Block a user