mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
CheckpointManager::link_checkpoint: No need for std::move for linetag element
Also removes mistakenly committed `__attribute__` optimisation-disabler in the same file
This commit is contained in:
parent
cbd7803e61
commit
b8625339fa
1 changed files with 2 additions and 2 deletions
|
|
@ -495,7 +495,7 @@ struct CheckpointManager
|
|||
else // Checkpoint isn't in the list, find any associated tagged lines and make the pair
|
||||
{
|
||||
if (chk->linetag())
|
||||
lines_.try_emplace(chk->linetag(), std::move(tagged_lines(chk->linetag())));
|
||||
lines_.try_emplace(chk->linetag(), tagged_lines(chk->linetag()));
|
||||
list_.push_front(chk);
|
||||
}
|
||||
|
||||
|
|
@ -558,7 +558,7 @@ void Obj_CheckpointThink(mobj_t* end)
|
|||
chk->animate();
|
||||
}
|
||||
|
||||
void __attribute__((optimize("O0"))) Obj_CrossCheckpoints(player_t* player, fixed_t old_x, fixed_t old_y)
|
||||
void Obj_CrossCheckpoints(player_t* player, fixed_t old_x, fixed_t old_y)
|
||||
{
|
||||
LineOnDemand ray(old_x, old_y, player->mo->x, player->mo->y, player->mo->radius);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue