mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-22 20:31:50 +00:00
Rename variable to conform to naming guidelines
Change the name of the cvar machinegun_norecoil to g_machinegun_norecoil to conform to the naming guidelines
This commit is contained in:
parent
73beecec44
commit
ea57b889b6
4 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,7 @@ cvar_t *randomrespawn;
|
|||
cvar_t *g_disruptor;
|
||||
|
||||
cvar_t *aimfix;
|
||||
cvar_t *machinegun_norecoil;
|
||||
cvar_t *g_machinegun_norecoil;
|
||||
|
||||
void SpawnEntities(char *mapname, char *entities, char *spawnpoint);
|
||||
void ClientThink(edict_t *ent, usercmd_t *cmd);
|
||||
|
|
|
@ -634,7 +634,7 @@ extern cvar_t *randomrespawn;
|
|||
extern cvar_t *g_disruptor;
|
||||
|
||||
extern cvar_t *aimfix;
|
||||
extern cvar_t *machinegun_norecoil;
|
||||
extern cvar_t *g_machinegun_norecoil;
|
||||
|
||||
/* this is for the count of monsters */
|
||||
#define ENT_SLOTS_LEFT \
|
||||
|
|
|
@ -1475,7 +1475,7 @@ Machinegun_Fire(edict_t *ent)
|
|||
ent->client->kick_angles[0] = ent->client->machinegun_shots * -1.5;
|
||||
|
||||
/* raise the gun as it is firing */
|
||||
if (!(deathmatch->value || machinegun_norecoil->value))
|
||||
if (!(deathmatch->value || g_machinegun_norecoil->value))
|
||||
{
|
||||
ent->client->machinegun_shots++;
|
||||
|
||||
|
|
|
@ -259,7 +259,7 @@ InitGame(void)
|
|||
|
||||
/* others */
|
||||
aimfix = gi.cvar("aimfix", "0", CVAR_ARCHIVE);
|
||||
machinegun_norecoil = gi.cvar("machinegun_norecoil", "0", CVAR_ARCHIVE);
|
||||
g_machinegun_norecoil = gi.cvar("g_machinegun_norecoil", "0", CVAR_ARCHIVE);
|
||||
|
||||
/* items */
|
||||
InitItems ();
|
||||
|
|
Loading…
Reference in a new issue