Loïc Blot c6d5441105 Properly remove SAO when worldedges are overtaken (#5889)
* LuaEntitySAO: Remove beyond outermost mapchunk edges

Based on a commit by, and with help from, nerzhul.
Add 2 functions to class Mapgen:
A function to calculate actual mapgen edges, called from the Mapgen constructor.
A function called indirectly from content_sao.cpp per entity step to check SAO
position is within mapgen edges.

* Calculate borders from params not mapgen, which is not available everytime
2017-06-03 19:57:02 +02:00
..
2017-04-17 09:04:58 +02:00
2016-12-26 22:36:22 +01:00
2016-03-19 21:27:57 -04:00
2017-04-21 23:34:59 +10:00
2017-04-30 00:06:13 +01:00
2017-04-30 00:06:13 +01:00
2017-04-28 14:43:18 -04:00
2017-04-23 14:35:08 +02:00
2017-04-23 14:35:08 +02:00
2015-11-06 08:51:14 +01:00
2015-08-25 18:33:52 -04:00
2016-12-20 17:17:38 +10:00
2015-12-07 13:51:41 -05:00
2015-07-08 10:12:44 +02:00
2015-10-26 15:14:22 +01:00
2017-05-20 22:29:15 +02:00
2017-04-28 14:43:18 -04:00
2015-07-23 07:38:13 +02:00
2015-08-25 18:33:52 -04:00
2017-04-28 14:43:18 -04:00
2017-04-28 14:43:18 -04:00
2017-04-23 10:24:00 +02:00
2017-04-08 18:39:15 -07:00
2017-04-08 18:39:15 -07:00
2016-12-28 14:16:39 -08:00
2015-11-06 08:51:14 +01:00
2017-04-28 14:43:18 -04:00
2017-05-10 15:29:21 +02:00
2017-02-08 00:15:55 +01:00
2017-05-20 22:29:15 +02:00
2017-05-20 22:29:15 +02:00
2017-05-10 15:29:21 +02:00
2017-05-10 15:29:21 +02:00
2016-06-11 23:35:17 +01:00
2016-06-11 23:35:17 +01:00
2016-06-04 02:16:06 -04:00
2016-06-04 01:51:44 -04:00
2016-05-01 15:32:02 +02:00
2015-12-07 13:51:41 -05:00
2015-12-07 13:51:41 -05:00
2017-04-28 14:43:18 -04:00
2017-04-28 14:43:18 -04:00
2015-08-23 22:04:06 -04:00
2017-01-04 19:18:40 +01:00
2017-01-04 19:18:40 +01:00
2017-05-04 07:52:31 +02:00
2016-05-23 11:48:30 -04:00
2017-05-10 15:29:21 +02:00
2017-05-20 22:29:15 +02:00
2017-03-18 12:37:57 +01:00
2017-03-18 12:37:57 +01:00
2016-10-13 17:33:16 +02:00
2017-05-04 07:52:31 +02:00
2017-05-03 03:12:45 +01:00
2017-05-04 07:52:31 +02:00
2017-01-18 23:21:01 +01:00
2017-04-28 20:12:28 +02:00
2017-04-28 14:43:18 -04:00
2015-03-27 15:00:48 -04:00
2017-04-20 05:39:14 +02:00