X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=be62988769130a8dbdd27ed4cfeeeceea5b0278c;hb=8e75a34131e9fb04fb44a73f036da2aca872fa95;hp=77b7fa63a3ed5f774b5694a4fd53a8e435886738;hpb=dbaf7ce2273e86297d04662452ad4c2e89d9b9e4;p=blank.git diff --git a/src/client/client.cpp b/src/client/client.cpp index 77b7fa6..be62988 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -158,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(); } @@ -396,7 +396,7 @@ void MasterState::OnEnter() { } -void MasterState::Handle(const SDL_Event &event) { +void MasterState::Handle(const SDL_Event &) { } @@ -450,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