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
This commit is contained in:
terminx 2018-10-07 05:22:17 +00:00
parent 2206581952
commit eb08f1443e

View file

@ -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)
{