aboutsummaryrefslogtreecommitdiff
path: root/src/cObjectHandler.cpp
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-06 15:22:43 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-06 15:22:43 +0100
commit35e7c375a2f96bd8dffcadc800f7e9d4354217a5 (patch)
tree862efea304e651142dd4419c6f72a2e912ec5f3e /src/cObjectHandler.cpp
parentacaf96c4930d88ebbabcea809473e623ba361ef9 (diff)
downloadtermgl-35e7c375a2f96bd8dffcadc800f7e9d4354217a5.tar.gz
Collision update
Changed collision parameters for onCollision fuinctions to pass the movement delta of moved Object
Diffstat (limited to 'src/cObjectHandler.cpp')
-rw-r--r--src/cObjectHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cObjectHandler.cpp b/src/cObjectHandler.cpp
index 11c02e6..7af0f3c 100644
--- a/src/cObjectHandler.cpp
+++ b/src/cObjectHandler.cpp
@@ -52,7 +52,7 @@ int cObjectHandler::moveObject(int _object, sPos _pos, int _mode)
for(int i = 0; i < coll.idc; i++)
{
if(coll.idv[i] != _object)
- abort += objects[_object]->onCollisionActive(0, objects[coll.idv[0]]->onCollisionPassive(0));
+ abort += objects[_object]->onCollisionActive(_pos, objects[coll.idv[0]]->onCollisionPassive(_pos));
}
}