Commit Graph

21 Commits

Author SHA1 Message Date
Louis Royer
448fe3ebf1 Rework on messages displayed
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-03-19 22:46:22 +01:00
Louis Royer
4179917eb4 Add translation support 2020-03-19 22:46:22 +01:00
Panquesito7
5527dc8945 Replace deprecated functions with newer ones (#36)
This commit replaces a few deprecated calls to getpos with get_pos
2019-07-10 20:26:42 +02:00
Auke Kok
6218e5884d Limit areas to -30992,30992 due to MABLOCK_SIZE=16
Internally, when allocating an AreaStore, the limits are required
to be within the last full block, and so, you cannot create one "on"
the edge, as it will trigger an exception. When limited to the last
full mapblock, it all works fine.
2019-04-03 11:10:59 -07:00
Auke Kok
cfd4bb2423 Last of the luacheck cleanups. 2019-04-03 10:26:20 -07:00
Auke Kok
6e2b9a0a51 Needs to be defined earlier. 2019-04-03 10:24:02 -07:00
Auke Kok
024424ee8b Also limit chatcommand area_pos[12] positions. 2019-04-03 10:17:47 -07:00
Vanessa Dannenberg
f70600db30 oops, commas would be nice. 2019-04-02 16:06:19 -07:00
Vanessa Dannenberg
9508a004d0 fix posLimit(pos) to process and return a position table 2019-04-02 14:53:54 -07:00
Auke Kok
630bdefd98 Don't allow areas to cross outside mapgen world limits.
Limit any area to within [-31000,31000].
2019-04-01 21:28:03 -07:00
ShadowNinja
9871caf1e2 Copy positions to avaoid multiple references 2014-07-15 15:41:18 -04:00
ShadowNinja
e17cda925b Add canInteractInArea 2014-07-12 16:37:54 -04:00
ShadowNinja
abd6a4c709 Centralize position getting and sorting 2014-05-30 17:41:41 -04:00
ShadowNinja
02905caaeb Pass messages by return value 2014-05-29 11:04:37 -04:00
ShadowNinja
f096fb4dbb Use table indices as IDs
This significantly optimizes a lot of operations and removes redundancy.
2013-11-18 21:12:09 -05:00
ShadowNinja
790ed15594 Chat command regex tweaks 2013-11-14 19:15:26 -05:00
ShadowNinja
db664d68f8 License tweaks 2013-11-14 19:11:20 -05:00
ShadowNinja
5b4cbe122f Fix crash when using /area_pos# with invalid arguments 2013-10-29 12:38:12 -04:00
ShadowNinja
547fa726bf Fix crash with invalid number passed to select_area 2013-09-08 20:52:20 -04:00
ShadowNinja
7b0ff512f7 Shorten lines 2013-09-03 01:33:08 -04:00
ShadowNinja
4ae050a3ae Initial commit 2013-09-02 19:16:14 -04:00