mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Don't recalculate statustext initial color everytime & review fixes
This commit is contained in:
parent
f40f4143df
commit
9146c6a50f
6 changed files with 24 additions and 21 deletions
|
@ -1277,7 +1277,7 @@ private:
|
|||
void updateChat(f32 dtime, const v2u32 &screensize);
|
||||
static const ClientEventHandler clientEventHandler[CLIENTEVENT_MAX];
|
||||
|
||||
InputHandler *input;
|
||||
InputHandler *input = nullptr;
|
||||
|
||||
Client *client = nullptr;
|
||||
Server *server = nullptr;
|
||||
|
@ -2669,9 +2669,9 @@ void Game::toggleFog()
|
|||
{
|
||||
m_flags.force_fog_off = !m_flags.force_fog_off;
|
||||
if (m_flags.force_fog_off)
|
||||
m_game_ui->showTranslatedStatusText("Fog disabled");
|
||||
m_game_ui->showTranslatedStatusText("Fog disabled");
|
||||
else
|
||||
m_game_ui->showTranslatedStatusText("Fog enabled");
|
||||
m_game_ui->showTranslatedStatusText("Fog enabled");
|
||||
}
|
||||
|
||||
|
||||
|
@ -2912,9 +2912,8 @@ inline void Game::step(f32 *dtime)
|
|||
if (can_be_and_is_paused) { // This is for a singleplayer server
|
||||
*dtime = 0; // No time passes
|
||||
} else {
|
||||
if (server) {
|
||||
if (server)
|
||||
server->step(*dtime);
|
||||
}
|
||||
|
||||
client->step(*dtime);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue