groundwork: u.twoweap manipulation

Toggle u.twoweap on or off in just one place.
This commit is contained in:
PatR
2020-04-03 11:42:17 -07:00
parent d58e449d6c
commit 8f73f926b1
9 changed files with 32 additions and 19 deletions

View File

@@ -1149,7 +1149,7 @@ int dieroll;
if (jousting < 0) {
pline("%s shatters on impact!", Yname2(obj));
/* (must be either primary or secondary weapon to get here) */
u.twoweap = FALSE; /* untwoweapon() is too verbose here */
set_twoweap(FALSE); /* u.twoweap = FALSE; untwoweapon() is too verbose */
if (obj == uwep)
uwepgone(); /* set g.unweapon */
/* minor side-effect: broken lance won't split puddings */