Fix lag with Drawing Backtrack ticks
This commit is contained in:
parent
71f1cb2189
commit
73b34c6fd8
@ -284,12 +284,7 @@ void CreateMoveEarly()
|
|||||||
|
|
||||||
#if ENABLE_VISUALS
|
#if ENABLE_VISUALS
|
||||||
if (draw)
|
if (draw)
|
||||||
{
|
draw_positions.push_back(tick.hitboxes.at(0).center);
|
||||||
MoveToTick(tick);
|
|
||||||
Vector draw_pos = ent->hitboxes.GetHitbox(0)->center;
|
|
||||||
draw_positions.push_back(draw_pos);
|
|
||||||
RestoreEntity(i);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -333,7 +328,6 @@ void CreateMoveLate()
|
|||||||
current_user_cmd->tick_count = set_data->tickcount;
|
current_user_cmd->tick_count = set_data->tickcount;
|
||||||
red_position = set_data->hitboxes.at(0).center;
|
red_position = set_data->hitboxes.at(0).center;
|
||||||
RestoreEntity(set_data->entidx);
|
RestoreEntity(set_data->entidx);
|
||||||
set_data = std::nullopt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shutdown()
|
void Shutdown()
|
||||||
|
Reference in New Issue
Block a user