]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
little reorganization
authorSamual Lenks <samual@xonotic.org>
Wed, 1 Jan 2014 13:12:28 +0000 (08:12 -0500)
committerSamual Lenks <samual@xonotic.org>
Wed, 1 Jan 2014 13:12:28 +0000 (08:12 -0500)
qcsrc/common/weapons/weapons.qh

index d2d84bfa3d37eb5b2b784929ebc56c4fae7fd2b1..de9595c440fd016401bc36b2ef4eefbdf502334f 100644 (file)
@@ -2,6 +2,8 @@
 #include "calculations.qh"
 #endif
 
+const float MAX_SHOT_DISTANCE = 32768;
+
 const float BOT_PICKUP_RATING_LOW  =  2500;
 const float BOT_PICKUP_RATING_MID  =  5000;
 const float BOT_PICKUP_RATING_HIGH = 10000;
@@ -17,8 +19,6 @@ const float WEP_FLAG_RELOADABLE     =  0x80; // can has reload
 const float WEP_FLAG_SUPERWEAPON    = 0x100; // powerup timer
 const float WEP_FLAG_MUTATORBLOCKED = 0x200; // hides from impulse 99 etc. (mutators are allowed to clear this flag)
 
-const float MAX_SHOT_DISTANCE = 32768;
-
 // weapon requests // WEAPONTODO: give these better descriptions
 const float WR_SETUP          =  1; // (SERVER) setup weapon data
 const float WR_THINK          =  2; // (SERVER) logic to run every frame
@@ -103,7 +103,7 @@ float GetAmmoStat(.float ammotype);
 #define WEP_ADD_CVAR_BOTH(wepname,name) \
        WEP_ADD_CVAR_PRI(wepname, name) \
        WEP_ADD_CVAR_SEC(wepname, name)
-       
+
 #define WEP_ADD_CVAR(wepid,wepname,mode,name) WEP_ADD_CVAR_##mode(wepname, name)
 
 // create properties for weapon settings