]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
projected_on_screen: use the very same checks used elsewhere (fix indentation while...
authorterencehill <piuntn@gmail.com>
Sat, 17 Jun 2017 09:57:16 +0000 (11:57 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 17 Jun 2017 09:57:16 +0000 (11:57 +0200)
qcsrc/client/miscfunctions.qc

index 468cab28bdea6e13b357e56d405b3b9af5d21b0f..b1bf10bdf15092e3fcfd666c06d5fd786f957d17 100644 (file)
@@ -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)