Fixed character movement by ignoring key repeats
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
bool LocalCharacter::ProcessCollisionGrid(std::list<BoundingBox> boxList) {
|
||||
for(auto& box : boxList) {
|
||||
if (box.CheckOverlap(origin + bounds)) {
|
||||
//TODO: write a better collision system
|
||||
origin -= motion;
|
||||
motion = {0, 0};
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user