diff options
Diffstat (limited to 'src/core/clientstate.cc')
| -rw-r--r-- | src/core/clientstate.cc | 17 | 
1 files changed, 12 insertions, 5 deletions
| diff --git a/src/core/clientstate.cc b/src/core/clientstate.cc index 57802fa..865c0bb 100644 --- a/src/core/clientstate.cc +++ b/src/core/clientstate.cc @@ -6,6 +6,7 @@  #include "core/clientstate.h"  #include "core/application.h" +#include "sys/sys.h"  namespace core { @@ -14,18 +15,24 @@ ClientState::ClientState()  	state_visible = false;  	state_detailvisible = false;  	state_targetable = false; -	state_enginesound = 0; -	for (size_t i = 0; i < 3; i++) -		state_screenlocation[i] = 0; +	state_enginesound = 0; +	state_engine_trail_offset = 0;  	state_fuzz = math::randomf(); -	state_engine_trail_offset = 0;  }  ClientState::ClientState(Entity *entity)  { -	ClientState(); +	state_visible = false; +	state_detailvisible = false; +	state_targetable = false; + +	state_enginesound = 0; +	state_engine_trail_offset = 0; + +	state_fuzz = math::randomf(); +	  	assign(entity);  } | 
