Cache reference to local player cloak time
This commit is contained in:
parent
c3e2edaff0
commit
b9804e6e58
|
@ -1201,8 +1201,9 @@ void do_cloak_invul_secret_stuff(fix64 old_gametime)
|
|||
{
|
||||
fix time_used;
|
||||
|
||||
time_used = old_gametime - get_local_player_cloak_time();
|
||||
get_local_player_cloak_time() = GameTime64 - time_used;
|
||||
auto &t = get_local_player_cloak_time();
|
||||
time_used = old_gametime - t;
|
||||
t = GameTime64 - time_used;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue