]> git.localhorst.tv Git - blank.git/blobdiff - src/client/client.cpp
make gcc nag more
[blank.git] / src / client / client.cpp
index 44d2156538f641991b96ee2c7f07d020ddae4f4b..be62988769130a8dbdd27ed4cfeeeceea5b0278c 100644 (file)
@@ -80,9 +80,6 @@ InteractiveState::InteractiveState(MasterState &master, uint32_t player_id)
        chunk_renderer.FogDensity(master.GetWorldConf().fog_density);
        loop_timer.Start();
        stat_timer.Start();
-       if (save.Exists(player)) {
-               save.Read(player);
-       }
 }
 
 void InteractiveState::OnResume() {
@@ -161,7 +158,7 @@ void InteractiveState::Update(int dt) {
        if (input.BlockFocus()) {
                hud.FocusBlock(input.BlockFocus().GetChunk(), input.BlockFocus().block);
        } else if (input.EntityFocus()) {
-               hud.FocusEntity(*input.EntityFocus().entity);
+               hud.FocusEntity(input.EntityFocus().GetEntity());
        } else {
                hud.FocusNone();
        }
@@ -399,7 +396,7 @@ void MasterState::OnEnter() {
 }
 
 
-void MasterState::Handle(const SDL_Event &event) {
+void MasterState::Handle(const SDL_Event &) {
 
 }
 
@@ -453,7 +450,7 @@ void MasterState::On(const Packet::Join &pack) {
        env.state.Push(state.get());
 }
 
-void MasterState::On(const Packet::Part &pack) {
+void MasterState::On(const Packet::Part &) {
        Quit();
        if (state) {
                // kicked