aboutsummaryrefslogtreecommitdiff
path: root/src/environment.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-09-16 16:12:59 +0200
committerest31 <MTest31@outlook.com>2015-09-16 17:39:49 +0200
commit6c81be51ffd26ec7dee1ecb887a8743a8b6a6ce4 (patch)
tree68d6f4cebb178a3288078ff6f394bbc2d7a42091 /src/environment.cpp
parentf61f817b9c170942a5b3ce3591125c2191645cd0 (diff)
downloadminetest-6c81be51ffd26ec7dee1ecb887a8743a8b6a6ce4.tar.gz
minetest-6c81be51ffd26ec7dee1ecb887a8743a8b6a6ce4.tar.bz2
minetest-6c81be51ffd26ec7dee1ecb887a8743a8b6a6ce4.zip
Fix object position border checking
Borders have to be converted into BS format in order to be accurately comparable to object positions.
Diffstat (limited to 'src/environment.cpp')
-rw-r--r--src/environment.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/environment.cpp b/src/environment.cpp
index 0b3c0347d..6877c2460 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -1495,8 +1495,10 @@ u16 ServerEnvironment::addActiveObjectRaw(ServerActiveObject *object,
}
if (objectpos_over_limit(object->getBasePosition())) {
+ v3f p = object->getBasePosition();
errorstream << "ServerEnvironment::addActiveObjectRaw(): "
- << "object position outside maximum range" << std::endl;
+ << "object position (" << p.X << "," << p.Y << "," << p.Z
+ << ") outside maximum range" << std::endl;
if (object->environmentDeletes())
delete object;
return 0;