Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/clientstate.cc')
-rw-r--r--src/core/clientstate.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/clientstate.cc b/src/core/clientstate.cc
index 865c0bb..8e9c2e5 100644
--- a/src/core/clientstate.cc
+++ b/src/core/clientstate.cc
@@ -20,6 +20,7 @@ ClientState::ClientState()
state_engine_trail_offset = 0;
state_fuzz = math::randomf();
+ state_distance = -1;
}
ClientState::ClientState(Entity *entity)
@@ -32,7 +33,8 @@ ClientState::ClientState(Entity *entity)
state_engine_trail_offset = 0;
state_fuzz = math::randomf();
-
+ state_distance = -1;
+
assign(entity);
}
@@ -56,6 +58,7 @@ void ClientState::assign(Entity * entity)
state_previouslocation.assign(entity->location());
state_previousaxis.assign(entity->axis());
+ state_distance = -1;
}
}