Skip to content

Commit

Permalink
move callback ctx out of set state
Browse files Browse the repository at this point in the history
ChillerDragon committed Oct 25, 2024
1 parent 81cd965 commit 0f58f42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/set_state.h
Original file line number Diff line number Diff line change
@@ -11,12 +11,11 @@

namespace TWBL {

void SetState(CCharacter *pChr, CServerBotStateIn *pState, CCallbackCtx *pCallbackCtx)
void SetState(CCharacter *pChr, CServerBotStateIn *pState)
{
pState->m_GameTick = pChr->GameServer()->Server()->Tick();
pState->m_pCharacter = pChr;
pState->m_ClientId = pChr->GetPlayer()->GetCid();
pState->m_pCallbackCtx = pCallbackCtx;
}

} // namespace TWBL

0 comments on commit 0f58f42

Please sign in to comment.