mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
Modified Checkpoint behavior
Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
This commit is contained in:
parent
3df855df00
commit
f19bcdfa50
|
@ -65,7 +65,6 @@ bool CCharacter::Spawn(CPlayer *pPlayer, vec2 Pos)
|
||||||
m_ActiveWeapon = WEAPON_GUN;
|
m_ActiveWeapon = WEAPON_GUN;
|
||||||
m_LastWeapon = WEAPON_HAMMER;
|
m_LastWeapon = WEAPON_HAMMER;
|
||||||
m_QueuedWeapon = -1;
|
m_QueuedWeapon = -1;
|
||||||
m_CpActive = -2;
|
|
||||||
m_pPlayer = pPlayer;
|
m_pPlayer = pPlayer;
|
||||||
m_Pos = Pos;
|
m_Pos = Pos;
|
||||||
m_OlderPos = Pos;
|
m_OlderPos = Pos;
|
||||||
|
@ -702,12 +701,12 @@ void CCharacter::Tick()
|
||||||
m_StartTime = Server()->Tick();
|
m_StartTime = Server()->Tick();
|
||||||
m_RefreshTime = Server()->Tick();
|
m_RefreshTime = Server()->Tick();
|
||||||
m_RaceState = RACE_STARTED;
|
m_RaceState = RACE_STARTED;
|
||||||
|
m_CpActive = -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(((TileIndex == TILE_END) || (TileFIndex == TILE_END)) && m_RaceState == RACE_STARTED)
|
if(((TileIndex == TILE_END) || (TileFIndex == TILE_END)) && m_RaceState == RACE_STARTED)
|
||||||
{
|
{
|
||||||
char aBuf[128];
|
char aBuf[128];
|
||||||
m_CpActive=-2;
|
|
||||||
str_format(aBuf, sizeof(aBuf), "%s finished in: %d minute(s) %5.2f second(s)", Server()->ClientName(m_pPlayer->GetCID()), (int)time/60, time-((int)time/60*60));
|
str_format(aBuf, sizeof(aBuf), "%s finished in: %d minute(s) %5.2f second(s)", Server()->ClientName(m_pPlayer->GetCID()), (int)time/60, time-((int)time/60*60));
|
||||||
if(!g_Config.m_SvHideScore)
|
if(!g_Config.m_SvHideScore)
|
||||||
GameServer()->SendChatTarget(m_pPlayer->GetCID(), aBuf);
|
GameServer()->SendChatTarget(m_pPlayer->GetCID(), aBuf);
|
||||||
|
|
Loading…
Reference in a new issue