リビジョン | 0878f44e527a4fc647976d237fa49835753cd617 (tree) |
---|---|
日時 | 2021-10-19 12:27:43 |
作者 | Adam Kaminski <kaminskiadam9@gmai...> |
コミッター | Adam Kaminski |
Keep track of the first tic when a client also respawns after being a dead spectator.
@@ -3402,9 +3402,12 @@ | ||
3402 | 3402 | |
3403 | 3403 | if ( ulPlayer == static_cast<ULONG>( consoleplayer )) |
3404 | 3404 | { |
3405 | - // [AK] Keep track of the tic when we first entered the game. | |
3406 | - if (( priorState == PST_ENTER ) || ( priorState == PST_ENTERNOINVENTORY )) | |
3405 | + // [AK] Keep track of the tic when we (re)entered the game. | |
3406 | + if (( priorState == PST_ENTER ) || ( priorState == PST_ENTERNOINVENTORY ) || | |
3407 | + ( priorState == PST_REBORN ) || ( priorState == PST_REBORNNOINVENTORY )) | |
3408 | + { | |
3407 | 3409 | g_ulFirstSpawnedTic = gametic; |
3410 | + } | |
3408 | 3411 | } |
3409 | 3412 | else |
3410 | 3413 | { |