mirror of
https://github.com/minetest/minetest.git
synced 2024-08-19 13:04:09 +02:00
Prevent early respawns caused by up/down button in the death screen (#13870)
This commit is contained in:
parent
b270c2bd68
commit
7e678b5686
@ -177,8 +177,11 @@ struct LocalFormspecHandler : public TextDest
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_formname == "MT_DEATH_SCREEN") {
|
if (m_formname == "MT_DEATH_SCREEN") {
|
||||||
assert(m_client != 0);
|
assert(m_client != nullptr);
|
||||||
m_client->sendRespawn();
|
|
||||||
|
if (fields.find("quit") != fields.end())
|
||||||
|
m_client->sendRespawn();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user