aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains_train_steam
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-05-03 16:31:13 +0200
committerorwell96 <mono96.mml@gmail.com>2017-05-03 16:31:13 +0200
commit28717b4d65dc2e4080d5c7bde799fb4b87ef9a9d (patch)
tree81511699486ff8130ed23a43622bf73662f2be59 /advtrains/advtrains_train_steam
parent0c7144bcc49449eba9f6ab8f2c1d8efa72b0307a (diff)
downloadadvtrains-28717b4d65dc2e4080d5c7bde799fb4b87ef9a9d.tar.gz
advtrains-28717b4d65dc2e4080d5c7bde799fb4b87ef9a9d.tar.bz2
advtrains-28717b4d65dc2e4080d5c7bde799fb4b87ef9a9d.zip
Performance improvements: Don't clear paths unless absolutely necessary
instead delete path elements that are too far from the train one-by-one Also when switching a switch or changing rails, only clear train paths of trains that are nearby.
Diffstat (limited to 'advtrains/advtrains_train_steam')
0 files changed, 0 insertions, 0 deletions
="hl kwc">class ChatEvent { protected: ChatEvent(ChatEventType a_type) { type = a_type; } public: ChatEventType type; }; struct ChatEventTimeInfo : public ChatEvent { ChatEventTimeInfo( u64 a_game_time, u32 a_time) : ChatEvent(CET_TIME_INFO), game_time(a_game_time), time(a_time) {} u64 game_time; u32 time; }; struct ChatEventNick : public ChatEvent { ChatEventNick(ChatEventType a_type, const std::string &a_nick) : ChatEvent(a_type), // one of CET_NICK_ADD, CET_NICK_REMOVE nick(a_nick) {} std::string nick; }; struct ChatEventChat : public ChatEvent { ChatEventChat(const std::string &a_nick, const std::wstring &an_evt_msg) : ChatEvent(CET_CHAT), nick(a_nick), evt_msg(an_evt_msg) {}