GRIM: Don't check collisions if the collision scale is 0.

This commit is contained in:
Giulio Camuffo 2011-10-11 17:59:34 +02:00
parent d9091ce70a
commit da552f96f8

@ -551,6 +551,11 @@ bool Actor::isTurning() const {
void Actor::moveTo(const Math::Vector3d &pos) {
// This is necessary for collisions in set hl to work, since
// Manny's collision mode isn't set.
if (_collisionScale == 0.f) {
_pos = pos;
return;
}
if (_collisionMode == CollisionOff) {
_collisionMode = CollisionSphere;
}