Skip to content

Commit

Permalink
Doom64: Added a missing status cvar (tenth player weapon)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 15, 2018
1 parent 70cd7d9 commit 30ffe7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/apps/plugins/common/src/game/g_game.cpp
Expand Up @@ -2919,6 +2919,9 @@ static void registerGameStatusCVars()
{"player-weapon-bfg", READONLYCVAR, CVT_INT, &gsvWeapons[WT_SEVENTH], 0, 0, 0},
{"player-weapon-chainsaw", READONLYCVAR, CVT_INT, &gsvWeapons[WT_EIGHTH], 0, 0, 0},
{"player-weapon-sshotgun", READONLYCVAR, CVT_INT, &gsvWeapons[WT_NINETH], 0, 0, 0},
#if __JDOOM64__
{"player-weapon-unmaker", READONLYCVAR, CVT_INT, &gsvWeapons[WT_TENTH], 0, 0, 0},
#endif
// Keys
{"player-key-blue", READONLYCVAR, CVT_INT, &gsvKeys[KT_BLUECARD], 0, 0, 0},
{"player-key-yellow", READONLYCVAR, CVT_INT, &gsvKeys[KT_YELLOWCARD], 0, 0, 0},
Expand Down
3 changes: 3 additions & 0 deletions doomsday/apps/plugins/common/src/world/player.cpp
Expand Up @@ -1949,6 +1949,9 @@ void Player_UpdateStatusCVars(player_t const *player)
/* WT_SEVENTH */ { "player-weapon-bfg", CVAR_DELIM },
/* WT_EIGHTH */ { "player-weapon-chainsaw", CVAR_DELIM },
/* WT_NINETH */ { "player-weapon-sshotgun", CVAR_DELIM },
#if __JDOOM64__
/* WT_TENTH */ { "player-weapon-unmaker", CVAR_DELIM },
#endif
#elif __JHERETIC__
/* WT_FIRST */ { "player-weapon-staff", CVAR_DELIM },
/* WT_SECOND */ { "player-weapon-goldwand", CVAR_DELIM },
Expand Down

0 comments on commit 30ffe7a

Please sign in to comment.