From 01ed87123989e0ba5b87f50d102aec49948a739d Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 29 Aug 2022 19:47:05 +1000 Subject: [PATCH] - Optimise `spritetypebase::backupvec2()` and remove now-unused backupx/y() methods. --- source/core/coreactor.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/source/core/coreactor.h b/source/core/coreactor.h index f6b3f38a3..7abb00a38 100644 --- a/source/core/coreactor.h +++ b/source/core/coreactor.h @@ -171,16 +171,6 @@ public: return ::interpolatedangle(oang, spr.angle, smoothratio); } - void backupx() - { - opos.X = spr.pos.X; - } - - void backupy() - { - opos.Y = spr.pos.Y; - } - void backupz() { opos.Z = spr.pos.Z; @@ -188,8 +178,7 @@ public: void backupvec2() { - backupx(); - backupy(); + opos.XY() = spr.pos.XY(); } void backuppos()