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

Timer call in Main #238

Closed
wants to merge 1 commit into from
Closed
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 @@
23/11/2023 - Dragon Slayer
Fixed the call where uox3 was not setting the current time when starting up and was always 0. (Maarc)

19/11/2023 - Dragon Slayer
Fixed an issue where players qualifying for instant logout would not immediately vanish from view upon logout (Xuri)

Expand Down
1 change: 1 addition & 0 deletions source/uox3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ auto main( SI32 argc, char *argv[] ) ->int
std::chrono::time_point<std::chrono::system_clock> nextEvaluationTime = std::chrono::system_clock::now() + evaluationInterval;

// Core server loop
current = std::chrono::system_clock::now();
while( cwmWorldState->GetKeepRun() )
{
std::this_thread::sleep_for( std::chrono::milliseconds( cwmWorldState->GetPlayersOnline() ? 5 : 90 ));
Expand Down