Disallow placing entities outside safe boundaries
authorest31 <MTest31@outlook.com>
Tue, 15 Sep 2015 16:37:58 +0000 (18:37 +0200)
committerest31 <MTest31@outlook.com>
Tue, 15 Sep 2015 17:45:17 +0000 (19:45 +0200)
commitf61f817b9c170942a5b3ce3591125c2191645cd0
treecb8ff32f6bcfbbc6e26b1142e144216c752aedf1
parent8e9c9e305aecdb5b432c0990fef85fa6ff3c042b
Disallow placing entities outside safe boundaries

Entity positions are serialized as F1000. Disallow placing
entities outside safe borders with the minetest.add_entity
call.

Note that this patch only enforces those boundaries for
placing entities, moving entities that move outside boundaries
aren't affected.

Thanks to @nanepiwo for pointing this out.
src/environment.cpp
src/mapblock.h