Network Time (#724)

* fix(NativeHooks): Fix softlock when loading Cayo Perico
* fear(netTime): Try to modify time remotely
* fix(timeSync): Make it work more consistently
* feat(netTime): net time sync for all!
This commit is contained in:
maybegreat48
2022-12-19 17:39:06 +00:00
committed by GitHub
parent e442e284db
commit c2e9e61c01
14 changed files with 189 additions and 4 deletions

View File

@ -60,6 +60,11 @@ namespace big
int block_join_reason = 0;
bool is_spammer = false;
std::optional<std::uint32_t> player_time_value;
std::optional<std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds>> player_time_value_received_time;
std::optional<std::uint32_t> time_difference;
std::uint32_t num_time_syncs_sent = 9999;
protected:
bool equals(const CNetGamePlayer* net_game_player) const;