From: terencehill Date: Sat, 17 Jun 2017 09:57:16 +0000 (+0200) Subject: projected_on_screen: use the very same checks used elsewhere (fix indentation while... X-Git-Tag: xonotic-v0.8.5~2656^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bcc670b9a1b74e6b05f5e22c8da917ffc20f7051;p=xonotic%2Fxonotic-data.pk3dir.git projected_on_screen: use the very same checks used elsewhere (fix indentation while I'm at it...) --- diff --git a/qcsrc/client/miscfunctions.qc b/qcsrc/client/miscfunctions.qc index 468cab28b..b1bf10bdf 100644 --- a/qcsrc/client/miscfunctions.qc +++ b/qcsrc/client/miscfunctions.qc @@ -194,11 +194,11 @@ vector project_3d_to_2d(vector vec) bool projected_on_screen(vector screen_pos) { - return screen_pos.z >= 0 - && screen_pos.x >= 0 - && screen_pos.y >= 0 - && screen_pos.x < vid_conwidth - && screen_pos.y < vid_conheight; + return screen_pos.z >= 0 + && screen_pos.x >= 0 + && screen_pos.y >= 0 + && screen_pos.x <= vid_conwidth + && screen_pos.y <= vid_conheight; } float expandingbox_sizefactor_from_fadelerp(float fadelerp)