mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
More correct door reset
This commit is contained in:
parent
40ff09be29
commit
48d84b2784
|
@ -799,6 +799,8 @@ void CCharacter::Die(int Killer, int Weapon)
|
||||||
if (Team() > TEAM_FLOCK && Team() < TEAM_SUPER && Teams()->Count(Team()) == 1 && GameServer()->Collision()->m_NumSwitchers > 0) {
|
if (Team() > TEAM_FLOCK && Team() < TEAM_SUPER && Teams()->Count(Team()) == 1 && GameServer()->Collision()->m_NumSwitchers > 0) {
|
||||||
for (int i = 0; i < GameServer()->Collision()->m_NumSwitchers+1; ++i) {
|
for (int i = 0; i < GameServer()->Collision()->m_NumSwitchers+1; ++i) {
|
||||||
GameServer()->Collision()->m_pSwitchers[i].m_Status[Team()] = true;
|
GameServer()->Collision()->m_pSwitchers[i].m_Status[Team()] = true;
|
||||||
|
GameServer()->Collision()->m_pSwitchers[i].m_EndTick[Team()] = 0;
|
||||||
|
GameServer()->Collision()->m_pSwitchers[i].m_Type[Team()] = TILE_SWITCHOPEN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue