wifiman avatar wifiman committed ef73cba

Removed unneeded static qualifier on *_frames arrays in p_weapon.c.

Comments (0)

Files changed (1)

 
 void Weapon_GrenadeLauncher (edict_t *ent)
 {
-	static const int pause_frames[] = {34, 51, 59, 0};
-	static const int fire_frames[] = {6, 0};
+	const int pause_frames[] = {34, 51, 59, 0};
+	const int fire_frames[] = {6, 0};
 
 	Weapon_Generic (ent, 5, 16, 59, 64, pause_frames, fire_frames, weapon_grenadelauncher_fire);
 }
 
 void Weapon_RocketLauncher (edict_t *ent)
 {
-	static const int pause_frames[] = {25, 33, 42, 50, 0};
-	static const int fire_frames[] = {5, 0};
+	const int pause_frames[] = {25, 33, 42, 50, 0};
+	const int fire_frames[] = {5, 0};
 
 	Weapon_Generic (ent, 4, 12, 50, 54, pause_frames, fire_frames, Weapon_RocketLauncher_Fire);
 }
 
 void Weapon_Blaster (edict_t *ent)
 {
-	static const int pause_frames[] = {19, 32, 0};
-	static const int fire_frames[] = {5, 0};
+	const int pause_frames[] = {19, 32, 0};
+	const int fire_frames[] = {5, 0};
 
 	Weapon_Generic (ent, 4, 8, 52, 55, pause_frames, fire_frames, Weapon_Blaster_Fire);
 }
 
 void Weapon_HyperBlaster (edict_t *ent)
 {
-	static const int pause_frames[] = {0};
-	static const int fire_frames[] = {6, 7, 8, 9, 10, 11, 0};
+	const int pause_frames[] = {0};
+	const int fire_frames[] = {6, 7, 8, 9, 10, 11, 0};
 
 	Weapon_Generic (ent, 5, 20, 49, 53, pause_frames, fire_frames, Weapon_HyperBlaster_Fire);
 }
 
 void Weapon_Machinegun (edict_t *ent)
 {
-	static const int pause_frames[] = {23, 45, 0};
-	static const int fire_frames[] = {4, 5, 0};
+	const int pause_frames[] = {23, 45, 0};
+	const int fire_frames[] = {4, 5, 0};
 
 	Weapon_Generic (ent, 3, 5, 45, 49, pause_frames, fire_frames, Machinegun_Fire);
 }
 
 void Weapon_Chaingun (edict_t *ent)
 {
-	static const int pause_frames[] = {38, 43, 51, 61, 0};
-	static const int fire_frames[] = {5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 0};
+	const int pause_frames[] = {38, 43, 51, 61, 0};
+	const int fire_frames[] = {5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 0};
 
 	Weapon_Generic (ent, 4, 31, 61, 64, pause_frames, fire_frames, Chaingun_Fire);
 }
 
 void Weapon_Shotgun (edict_t *ent)
 {
-	static const int pause_frames[] = {22, 28, 34, 0};
-	static const int fire_frames[] = {8, 9, 0};
+	const int pause_frames[] = {22, 28, 34, 0};
+	const int fire_frames[] = {8, 9, 0};
 
 	Weapon_Generic (ent, 7, 18, 36, 39, pause_frames, fire_frames, weapon_shotgun_fire);
 }
 
 void Weapon_SuperShotgun (edict_t *ent)
 {
-	static const int pause_frames[] = {29, 42, 57, 0};
-	static const int fire_frames[] = {7, 0};
+	const int pause_frames[] = {29, 42, 57, 0};
+	const int fire_frames[] = {7, 0};
 
 	Weapon_Generic (ent, 6, 17, 57, 61, pause_frames, fire_frames, weapon_supershotgun_fire);
 }
 
 void Weapon_Railgun (edict_t *ent)
 {
-	static const int pause_frames[] = {56, 0};
-	static const int fire_frames[] = {4, 0};
+	const int pause_frames[] = {56, 0};
+	const int fire_frames[] = {4, 0};
 
 	Weapon_Generic (ent, 3, 18, 56, 61, pause_frames, fire_frames, weapon_railgun_fire);
 }
 
 void Weapon_BFG (edict_t *ent)
 {
-	static const int pause_frames[] = {39, 45, 50, 55, 0};
-	static const int fire_frames[] = {9, 17, 0};
+	const int pause_frames[] = {39, 45, 50, 55, 0};
+	const int fire_frames[] = {9, 17, 0};
 
 	Weapon_Generic (ent, 8, 32, 55, 58, pause_frames, fire_frames, weapon_bfg_fire);
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.