Skip to content

Commit 7f51e23

Browse files
FIX run in game server
1 parent 6483ecf commit 7f51e23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/include/game/game_server.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ namespace game {
5353
process_packets(50, std::chrono::milliseconds(10));
5454

5555
// Update game logic
56-
// logic_.update(delta_time);
56+
// logic_.update(delta_time);
5757

58+
next_tick_time += tick_duration;
5859
if (auto sleep_time = next_tick_time - std::chrono::steady_clock::now();
5960
sleep_time > std::chrono::milliseconds(0)) {
6061
std::this_thread::sleep_for(sleep_time);

0 commit comments

Comments
 (0)