From 6de872d701e43762672b26a063c03f68b17bb82d Mon Sep 17 00:00:00 2001 From: Alex Foster <123afoster@gmail.com> Date: Sun, 1 Sep 2024 11:20:27 -0700 Subject: [PATCH] const gameent* in hudgunorigin --- game/game.h | 2 +- game/render.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/game/game.h b/game/game.h index 39a83d17..55f48a56 100644 --- a/game/game.h +++ b/game/game.h @@ -1049,7 +1049,7 @@ namespace game extern int chooserandomplayermodel(int seed); extern void syncplayer(); extern void swayhudgun(int curtime); - extern vec hudgunorigin(int gun, const vec &from, const vec &to, gameent *d); + extern vec hudgunorigin(int gun, const vec &from, const vec &to, const gameent *d); extern void rendergame(); extern void renderavatar(); extern void rendereditcursor(); diff --git a/game/render.cpp b/game/render.cpp index 20b3c691..3e41b659 100644 --- a/game/render.cpp +++ b/game/render.cpp @@ -759,7 +759,7 @@ namespace game drawhudgun(); } - vec hudgunorigin(int gun, const vec &from, const vec &to, gameent *d) + vec hudgunorigin(int gun, const vec &from, const vec &to, const gameent *d) { if(d->muzzle.x >= 0) {