forked from Mirrorlandia_minetest/minetest
Little collision.cpp cleanups
This commit is contained in:
parent
60dc01dc25
commit
c6d7d2097c
@ -389,7 +389,6 @@ collisionMoveResult collisionMoveSimple(Environment *env, IGameDef *gamedef,
|
|||||||
loopcount++;
|
loopcount++;
|
||||||
if (loopcount >= 100) {
|
if (loopcount >= 100) {
|
||||||
warningstream << "collisionMoveSimple: Loop count exceeded, aborting to avoid infiniite loop" << std::endl;
|
warningstream << "collisionMoveSimple: Loop count exceeded, aborting to avoid infiniite loop" << std::endl;
|
||||||
dtime = 0;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -399,7 +398,7 @@ collisionMoveResult collisionMoveSimple(Environment *env, IGameDef *gamedef,
|
|||||||
|
|
||||||
int nearest_collided = -1;
|
int nearest_collided = -1;
|
||||||
f32 nearest_dtime = dtime;
|
f32 nearest_dtime = dtime;
|
||||||
u32 nearest_boxindex = -1;
|
int nearest_boxindex = -1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Go through every nodebox, find nearest collision
|
Go through every nodebox, find nearest collision
|
||||||
|
Loading…
Reference in New Issue
Block a user