]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon.qh
adjust max shot distance according to map size
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon.qh
index e2e978d72e6b1849386b8bcc21ea7d7d545c2acb..6220a0cea9723fc94493d67747f287df67910337 100644 (file)
@@ -175,9 +175,7 @@ ENDCLASS(OffhandWeapon)
 .OffhandWeapon offhand;
 #endif
 
-// currently, NetRadiant's limit is 131072 qu for each side
-// distance from one corner of a 131072qu cube to the opposite corner is approx. 227023 qu
-const int MAX_SHOT_DISTANCE = 230000;
+int max_shot_distance = 32768; // determined by world mins/maxs when map loads
 
 // weapon flags
 const int WEP_TYPE_OTHER          =  0x00; // not for damaging people