Log the recorded history, kaetemi/ryzomclassic#152

ryzomclassic-develop
kaetemi 4 years ago
parent b61ad76ac2
commit 92ee96a783

@ -506,6 +506,8 @@ void CStateInstance::processStateEvent(CAIEvent const& stateEvent, CAIState cons
if (getDebugHistory()->isRecording()) if (getDebugHistory()->isRecording())
{ {
nldebug("Reaction for event"); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152 nldebug("Reaction for event"); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152
nldebug("STATE: '%s' EVENT: '%s' REACTION: '%s'", state->getAliasNode()->fullName().c_str(),
stateEvent.getName().c_str(), reaction.getAliasNode()->fullName().c_str()); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152
getDebugHistory()->addHistory("STATE: '%s' EVENT: '%s' REACTION: '%s'", state->getAliasNode()->fullName().c_str(), getDebugHistory()->addHistory("STATE: '%s' EVENT: '%s' REACTION: '%s'", state->getAliasNode()->fullName().c_str(),
stateEvent.getName().c_str(), reaction.getAliasNode()->fullName().c_str()); stateEvent.getName().c_str(), reaction.getAliasNode()->fullName().c_str());
} }
@ -532,6 +534,8 @@ void CStateInstance::processStateEvent(CAIEvent const& stateEvent, CAIState cons
if (getDebugHistory()->isRecording()) if (getDebugHistory()->isRecording())
{ {
nldebug("No reaction for event"); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152 nldebug("No reaction for event"); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152
nldebug("STATE: '%s' EVENT: '%s' NO REACTION", state->getAliasNode()->fullName().c_str(),
stateEvent.getName().c_str()); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152
getDebugHistory()->addHistory("STATE: '%s' EVENT: '%s' NO REACTION", state->getAliasNode()->fullName().c_str(), getDebugHistory()->addHistory("STATE: '%s' EVENT: '%s' NO REACTION", state->getAliasNode()->fullName().c_str(),
stateEvent.getName().c_str()); stateEvent.getName().c_str());
} }

Loading…
Cancel
Save