X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=7dac3ad0991a2438350a0f15c755370ab42da786;hb=38a4cffc0b6aa58e49d24c06aad7bee14cb6515d;hp=bb91847baa558be55b02922a407c356a96700062;hpb=7fd76e64de47f564117b9e6f73f1482d93842108;p=blank.git diff --git a/src/client/client.cpp b/src/client/client.cpp index bb91847..7dac3ad 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -396,7 +396,8 @@ void MasterState::On(const Packet::SpawnEntity &pack) { if (skel) { skel->Instantiate(entity.GetModel()); } - cout << "spawned entity " << entity.Name() << " at " << entity.AbsolutePosition() << endl; + cout << "spawned entity #" << entity_id << " (" << entity.Name() + << ") at " << entity.AbsolutePosition() << endl; } void MasterState::On(const Packet::DespawnEntity &pack) { @@ -411,7 +412,7 @@ void MasterState::On(const Packet::DespawnEntity &pack) { for (Entity &entity : state->GetWorld().Entities()) { if (entity.ID() == entity_id) { entity.Kill(); - cout << "despawned entity " << entity.Name() << " at " << entity.AbsolutePosition() << endl; + cout << "despawned entity #" << entity_id << " (" << entity.Name() << ") at " << entity.AbsolutePosition() << endl; return; } } @@ -456,7 +457,7 @@ bool MasterState::UpdateEntity(uint32_t entity_id, uint16_t seq) { return true; } - int pack_diff = int16_t(seq) - int16_t(entry->second.last_packet); + int16_t pack_diff = int16_t(seq) - int16_t(entry->second.last_packet); int time_diff = update_timer.Elapsed() - entry->second.last_update; entry->second.last_update = update_timer.Elapsed();