PatR
503df6823d
fix github issue #354 - stealarm() impossible
...
A thieving monster could be killed while the hero was busy taking
off armor which needs multiple turns (normally a suit) and if that
happened on the same turn as the take-off finished, the warning
"stealarm(): dead monster stealing" was issued. Cited case was
having the thief be killed by a stinking cloud but it could happen
if the death was caused by a pet or by some other monster trying
to attack the hero. If the thief died sooner, the situation was
silently ignored. So this could have been fixed by just getting
rid of the impossible() feedback.
'stealmid' and 'stealoid' should have been static in steal.c rather
than global and as such should have been moved into 'struct g'.
This moves them there and then takes advantage of having access to
'stealmid' outside of steal.c. That's just a minor optimization
since m_detach() could call new thiefdead() unconditionally and the
latter could check whether the dead monster matches 'stealmid'.
Fixes #354
2020-06-01 06:17:07 -07:00
..
2018-11-11 10:29:52 -05:00
2020-01-13 15:23:42 -05:00
2020-03-16 17:32:12 -07:00
2018-04-25 15:00:13 -04:00
2020-05-09 13:07:35 -07:00
2020-04-28 13:26:41 -07:00
2020-01-21 17:03:54 -08:00
2020-05-11 17:51:25 -07:00
2020-04-03 11:42:17 -07:00
2020-05-04 16:35:40 -07:00
2020-04-24 09:29:52 -07:00
2020-01-11 19:51:54 +01:00
2020-06-01 06:17:07 -07:00
2020-04-22 01:14:09 -07:00
2020-05-01 00:42:18 -07:00
2020-04-27 10:49:34 -07:00
2019-07-14 17:24:58 -04:00
2020-05-30 22:48:18 -07:00
2020-05-04 09:50:11 -07:00
2020-05-11 17:51:25 -07:00
2020-04-23 17:31:21 -07:00
2020-04-23 17:31:21 -07:00
2020-02-26 20:03:00 +02:00
2020-05-11 17:51:25 -07:00
2020-05-09 18:07:56 -04:00
2020-05-05 18:06:00 -07:00
2020-05-31 17:39:52 -07:00
2020-03-02 15:05:06 -08:00
2020-05-18 11:46:23 -07:00
2020-05-04 16:35:40 -07:00
2020-05-12 15:26:28 -07:00
2019-07-14 17:24:58 -04:00
2020-05-23 12:51:01 -07:00
2020-04-17 14:56:47 -07:00
2020-05-03 21:52:41 -04:00
2020-04-15 22:45:47 +03:00
2020-05-04 16:35:40 -07:00
2020-05-24 11:09:43 -07:00
2019-07-13 00:17:23 -04:00
2020-05-09 13:36:22 -07:00
2020-01-05 23:54:11 -08:00
2019-11-09 16:19:05 -05:00
2020-05-30 16:00:29 -07:00
2020-04-17 01:06:37 -07:00
2020-05-30 22:48:18 -07:00
2020-04-22 15:32:32 -07:00
2020-05-03 14:13:08 -07:00
2020-05-20 16:40:40 +02:00
2020-04-05 15:42:38 +03:00
2020-05-05 18:06:00 -07:00
2020-01-05 13:31:24 +02:00
2020-04-18 19:55:09 +03:00
2020-05-30 13:33:16 -07:00
2020-04-21 14:32:14 -04:00
2020-06-01 06:17:07 -07:00
2020-04-20 13:28:43 -07:00
2020-05-03 14:13:08 -07:00
2020-05-03 14:13:08 -07:00
2019-07-14 17:24:58 -04:00
2020-04-14 15:19:30 +03:00
2020-05-30 13:33:16 -07:00
2020-04-06 13:34:07 +03:00
2020-04-06 13:34:07 +03:00
2020-04-12 16:55:00 +03:00
2020-04-16 21:01:37 +03:00
2020-04-23 11:47:29 -07:00
2020-05-03 16:34:54 -07:00
2020-05-09 16:14:52 -07:00
2020-05-23 12:51:01 -07:00
2020-05-06 11:15:25 -04:00
2020-05-30 13:33:16 -07:00
2020-01-20 21:33:20 -05:00
2020-04-05 12:44:25 +03:00
2020-04-05 15:06:43 +03:00
2020-05-12 00:27:13 +01:00
2020-04-10 00:29:51 -04:00
2019-12-14 12:31:29 -05:00
2020-05-24 03:06:18 -07:00
2020-05-24 11:09:43 -07:00
2019-07-14 17:24:58 -04:00
2020-04-17 14:56:47 -07:00
2020-04-24 09:29:52 -07:00
2019-07-14 17:24:58 -04:00
2020-04-06 13:34:07 +03:00
2020-05-12 16:38:12 -07:00
2020-03-06 11:30:39 -05:00
2020-05-23 12:51:01 -07:00
2019-07-14 17:24:58 -04:00
2020-02-12 14:35:37 -08:00
2020-05-10 14:23:34 +02:00
2020-03-16 10:33:31 +01:00
2020-05-23 12:51:01 -07:00
2020-04-29 15:58:55 -04:00
2020-03-15 11:57:34 +02:00
2020-06-01 06:17:07 -07:00
2020-02-19 15:47:55 -08:00
2020-05-09 18:07:56 -04:00
2019-12-18 07:38:59 -05:00
2020-05-04 09:19:37 -07:00
2020-05-04 09:50:11 -07:00
2020-05-04 16:35:40 -07:00
2019-07-14 17:24:58 -04:00
2020-04-27 11:48:55 -07:00
2020-04-03 11:42:17 -07:00
2020-06-01 06:17:07 -07:00
2020-04-03 08:21:08 +03:00
2020-02-13 00:59:04 -05:00
2020-05-09 13:07:35 -07:00
2020-05-11 13:42:25 -07:00
2019-02-19 07:48:19 -05:00
2020-04-07 07:40:33 -07:00
2020-02-20 20:23:33 -05:00
2020-05-03 14:13:08 -07:00
2020-02-21 18:16:14 +02:00
2020-05-02 02:07:33 -07:00
2019-11-09 21:50:18 -05:00
2020-05-14 14:27:49 -07:00