From 35e7c375a2f96bd8dffcadc800f7e9d4354217a5 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 6 Mar 2019 15:22:43 +0100 Subject: Collision update Changed collision parameters for onCollision fuinctions to pass the movement delta of moved Object --- src/cObjectHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cObjectHandler.cpp') 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)); } } -- cgit v1.2.3