Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instant logout #235

Merged
merged 1 commit into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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