From eb08f1443e2cac908825c7f4605ad671eb11ff7b Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 7 Oct 2018 05:22:17 +0000 Subject: [PATCH] Pass vec2_ts to get_screen_coords() by reference instead of by value git-svn-id: https://svn.eduke32.com/eduke32@7027 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 2aecddeee..2c8aac114 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -1571,7 +1571,7 @@ static inline vec2_t get_rel_coords(int32_t const x, int32_t const y) // Note: the returned y coordinates are not actually screen coordinates, but // potentially clipped player-relative y coordinates. -static int get_screen_coords(const vec2_t p1, const vec2_t p2, +static int get_screen_coords(const vec2_t &p1, const vec2_t &p2, int32_t *sx1ptr, int32_t *sy1ptr, int32_t *sx2ptr, int32_t *sy2ptr) {