diff --git a/NETWORKING.md b/NETWORKING.md index 97ad3dc34e..91a4ce6516 100644 --- a/NETWORKING.md +++ b/NETWORKING.md @@ -200,11 +200,11 @@ The current server configuration xml looks like this: ``` At the moment STK has a list of STUN servers for NAT penetration which allows players or servers behind a firewall or router to be able to connect to each other, but in case it doesn't work, you have to manually disable the firewall or port forward the port(s) used by STK. -By default STK servers use port `2759`. For example, in Ubuntu based distributions, run the following command to disable the firewall on that port: +By default STK servers use port `2759` (UDP). For example, in Ubuntu based distributions, run the following command to disable the firewall on that port: `sudo ufw allow 2759` -You may also need to handle the server discovery port `2757` for connecting your WAN server in LAN / localhost. +You may also need to handle the server discovery port `2757` (UDP) for connecting your WAN server in LAN / localhost. Notice: You don't need to make any firewall or router configuration changes if you connect to the recommended servers (marked with β˜†β˜…STKβ˜…β˜†). diff --git a/src/states_screens/race_gui.cpp b/src/states_screens/race_gui.cpp index cf6940d0b3..0f692d7828 100644 --- a/src/states_screens/race_gui.cpp +++ b/src/states_screens/race_gui.cpp @@ -519,14 +519,22 @@ void RaceGUI::drawLiveDifference() video::SColor time_color; // Change color depending on value - if (live_difference > 1.0f) + if (live_difference > 2.5f) time_color = video::SColor(255, 255, 0, 0); + else if (live_difference > 1.0f) + time_color = video::SColor(255, 255, 60, 0); + else if (live_difference > 0.3f) + time_color = video::SColor(255, 255, 120, 0); else if (live_difference > 0.0f) - time_color = video::SColor(255, 255, 160, 0); + time_color = video::SColor(255, 255, 180, 0); + else if (live_difference > -0.3f) + time_color = video::SColor(255, 210, 230, 0); else if (live_difference > -1.0f) - time_color = video::SColor(255, 160, 255, 0); + time_color = video::SColor(255, 105, 255, 0); + else if (live_difference > -2.5f) + time_color = video::SColor(255, 0, 210, 30); else - time_color = video::SColor(255, 0, 255, 0); + time_color = video::SColor(255, 0, 160, 60); int dist_from_right = 10 + timer_width;