wraitii
44aef27b78
Adapt unitMotion to edge-edge distance checks.
...
D981/c219ee54b2 changed IsInXChecks to use edge-to-edge distance instead
of centre-to-edge, which broke UnitMotion's min-range movement, which
assumed distance to the center.
Since units are represented as squares, the diagonal point may be closer
to the target than the "real" clearance by a factor √2, so the delta
between minimum range and maximum range should be at least `(√2 - 1) *
clearance` to be safe in all situations (this is generally not a problem
for regular units which have a clearance of 0.8, but could be one for
catapults or elephants).
Differential Revision: https://code.wildfiregames.com/D1969
This was SVN commit r22422.
2019-07-01 19:50:06 +00:00
..
2019-06-06 19:37:23 +00:00
2019-05-13 16:58:00 +00:00
2017-05-08 04:02:33 +00:00
2017-11-25 06:49:58 +00:00
2016-11-23 14:09:58 +00:00
2018-03-02 18:10:54 +00:00
2019-06-26 19:16:57 +00:00
2018-03-26 15:18:53 +00:00
2019-06-30 18:53:25 +00:00
2017-03-24 07:09:28 +00:00
2017-05-01 14:28:22 +00:00
2013-12-06 00:42:50 +00:00
2019-05-26 13:47:41 +00:00
2019-05-26 13:47:41 +00:00
2018-04-03 17:13:24 +00:00
2017-12-23 09:27:19 +00:00
2019-01-03 19:32:45 +00:00
2019-01-05 22:38:00 +00:00
2019-06-26 19:16:57 +00:00
2018-02-17 16:56:12 +00:00
2018-02-24 18:13:03 +00:00
2017-11-24 19:13:28 +00:00
2017-07-01 04:15:49 +00:00
2017-01-20 02:25:19 +00:00
2018-02-03 14:17:31 +00:00
2017-05-01 14:28:22 +00:00
2019-07-01 19:50:06 +00:00
2019-06-12 20:23:14 +00:00
2017-01-20 02:25:19 +00:00
2018-05-28 19:06:09 +00:00
2017-07-01 04:15:49 +00:00
2017-01-28 23:37:15 +00:00
2015-01-24 14:46:52 +00:00
2017-12-27 16:51:25 +00:00
2017-12-20 22:02:15 +00:00
2017-06-17 14:17:30 +00:00
2017-05-08 04:02:33 +00:00
2015-01-24 14:46:52 +00:00
2015-01-24 14:46:52 +00:00
2015-02-07 15:48:32 +00:00
2015-02-07 15:48:32 +00:00
2017-01-20 02:25:19 +00:00
2017-01-20 02:25:19 +00:00
2017-01-28 23:37:15 +00:00
2015-01-24 14:46:52 +00:00
2018-01-07 20:23:04 +00:00
2018-01-07 20:23:04 +00:00
2014-08-04 22:49:19 +00:00
2014-08-04 22:49:19 +00:00
2018-03-26 15:18:53 +00:00
2018-03-26 15:18:53 +00:00
2019-06-06 19:37:23 +00:00
2019-06-30 18:53:25 +00:00
2016-11-23 11:27:54 +00:00
2016-01-23 15:17:56 +00:00
2017-01-20 02:25:19 +00:00
2017-01-20 02:25:19 +00:00
2013-12-06 00:42:50 +00:00
2013-12-06 00:42:50 +00:00
2017-04-03 09:58:01 +00:00
2019-05-26 13:47:41 +00:00
2019-01-13 15:38:41 +00:00
2018-02-03 14:17:31 +00:00
2017-09-18 09:54:54 +00:00
2017-09-18 09:54:54 +00:00
2017-12-23 09:27:19 +00:00
2017-12-23 09:27:19 +00:00
2018-02-07 20:58:07 +00:00
2018-02-07 20:58:07 +00:00
2018-02-03 14:17:31 +00:00
2018-02-07 20:58:07 +00:00
2017-12-26 22:03:25 +00:00
2017-12-26 22:03:25 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2019-01-13 15:38:41 +00:00
2018-02-03 14:17:31 +00:00
2018-02-24 18:13:03 +00:00
2018-02-24 18:13:03 +00:00
2017-09-28 19:26:07 +00:00
2017-09-28 19:26:07 +00:00
2017-09-30 15:22:51 +00:00
2017-11-24 19:13:28 +00:00
2017-05-31 16:43:57 +00:00
2017-05-31 16:43:57 +00:00
2017-10-07 08:42:39 +00:00
2017-10-07 08:42:39 +00:00
2017-01-20 02:25:19 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2019-06-06 19:37:23 +00:00
2019-06-09 17:04:18 +00:00
2014-06-01 18:24:50 +00:00
2017-01-20 02:25:19 +00:00
2014-04-14 15:00:49 +00:00
2014-04-14 15:00:49 +00:00
2015-02-16 14:38:13 +00:00
2015-02-16 14:38:13 +00:00
2017-01-20 02:25:19 +00:00
2017-01-20 02:25:19 +00:00
2018-02-24 18:13:03 +00:00
2018-02-24 18:13:03 +00:00
2017-01-20 02:25:19 +00:00
2017-01-20 02:25:19 +00:00