Skip to content

Commit

Permalink
instant logout
Browse files Browse the repository at this point in the history
Fixed an issue where players qualifying for instant logout would not immediately vanish from view upon logout (Xuri)
  • Loading branch information
DragonSlayer62 committed Nov 19, 2023
1 parent 44543b1 commit 017e644
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
19/11/2023 - Dragon Slayer
Fixed an issue where players qualifying for instant logout would not immediately vanish from view upon logout (Xuri)

18/11/2023 - Xuri
Enhance the calculation of the average 'z' for movement.

Expand Down
2 changes: 1 addition & 1 deletion source/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ void CNetworkStuff::LogOut( CSocket *s )
{
actbAccount.dwInGame = INVALIDSERIAL;
}
p->SetTimer( tPC_LOGOUT, 0 );
p->SetTimer( tPC_LOGOUT, 1 );
s->ClearTimers();
}
else
Expand Down
1 change: 1 addition & 0 deletions source/uox3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2638,6 +2638,7 @@ auto CWorldMain::CheckAutoTimers() -> void
if( oaiw == INVALIDSERIAL )
{
charCheck->SetTimer( tPC_LOGOUT, 0 );
charCheck->RemoveFromSight();
charCheck->Update();
}
else if(( oaiw == charCheck->GetSerial() ) && (( charCheck->GetTimer( tPC_LOGOUT ) <= GetUICurrentTime() ) || GetOverflow() ))
Expand Down

0 comments on commit 017e644

Please sign in to comment.