mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
[Client] Print cells for actor deaths
This commit is contained in:
parent
828c52138f
commit
dcbc9d1831
@ -68,10 +68,10 @@ void LocalActor::update(bool forceUpdate)
|
|||||||
|
|
||||||
void LocalActor::updateCell()
|
void LocalActor::updateCell()
|
||||||
{
|
{
|
||||||
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Sending ID_ACTOR_CELL_CHANGE about %s %i-%i to server",
|
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Sending ID_ACTOR_CELL_CHANGE about %s %i-%i in cell %s to server",
|
||||||
refId.c_str(), refNum, mpNum);
|
refId.c_str(), refNum, mpNum, cell.getDescription().c_str());
|
||||||
|
|
||||||
LOG_APPEND(Log::LOG_VERBOSE, "- Moved from %s to %s", cell.getDescription().c_str(), ptr.getCell()->getCell()->getDescription().c_str());
|
LOG_APPEND(Log::LOG_VERBOSE, "- Moved to cell %s", ptr.getCell()->getCell()->getDescription().c_str());
|
||||||
|
|
||||||
cell = *ptr.getCell()->getCell();
|
cell = *ptr.getCell()->getCell();
|
||||||
position = ptr.getRefData().getPosition();
|
position = ptr.getRefData().getPosition();
|
||||||
@ -194,8 +194,8 @@ void LocalActor::updateStatsDynamic(bool forceUpdate)
|
|||||||
if (MechanicsHelper::isEmptyTarget(killer))
|
if (MechanicsHelper::isEmptyTarget(killer))
|
||||||
killer = MechanicsHelper::getTarget(ptr);
|
killer = MechanicsHelper::getTarget(ptr);
|
||||||
|
|
||||||
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Sending ID_ACTOR_DEATH about %s %i-%i to server",
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Sending ID_ACTOR_DEATH about %s %i-%i in cell %s to server",
|
||||||
refId.c_str(), refNum, mpNum);
|
refId.c_str(), refNum, mpNum, cell.getDescription().c_str());
|
||||||
|
|
||||||
mwmp::Main::get().getNetworking()->getActorList()->addDeathActor(*this);
|
mwmp::Main::get().getNetworking()->getActorList()->addDeathActor(*this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user