From b8625339fa4aa36f455460b86fd5f39bce441189 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 18 May 2025 15:42:16 +0100 Subject: [PATCH] CheckpointManager::link_checkpoint: No need for std::move for linetag element Also removes mistakenly committed `__attribute__` optimisation-disabler in the same file --- src/objects/checkpoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objects/checkpoint.cpp b/src/objects/checkpoint.cpp index 8ceba4df4..03502e1bb 100644 --- a/src/objects/checkpoint.cpp +++ b/src/objects/checkpoint.cpp @@ -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);