Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
etorth committed Jan 14, 2025
1 parent 2e6a823 commit c5d1b56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/npcharop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ void NPChar::on_AM_ACTION(const ActorMsgPack &mpk)
void NPChar::on_AM_NPCEVENT(const ActorMsgPack &mpk)
{
fflassert(mpk.from());
const auto sdNPCE = mpk.deserialize<SDNPCEvent>();
auto sdNPCE = mpk.deserialize<SDNPCEvent>();

if(!sdNPCE.event.empty() && sdNPCE.event != SYS_ENTER){
sdNPCE.event = AESHelper(this, mpk.from()).decode(sdNPCE.event.c_str());
}

// when CO initially sends a message to NPC, we assume its UID is the callStackUID
// when NPC querys CO attributes the response should be handled in actor response handler, not here
Expand Down

0 comments on commit c5d1b56

Please sign in to comment.