Skip to content

Commit

Permalink
Fixed #376 by adding missing GameVariables to config parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mwydmuch committed Apr 15, 2019
1 parent a2c8f95 commit 278d4aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Added `objects` and `sectors` fields to `GameState` in Python and C++.

#### Config files
- Added missing GameVariables introduced in 1.1.5 to Config parser.
- Added missing GameVariables introduced in 1.1.7 to Config parser.
- Added `objectsInfoEnabled/objects_info_enabled`

Expand Down
4 changes: 4 additions & 0 deletions src/lib/ViZDoomConfigLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ namespace vizdoom {
if (str == "secretcount") return SECRETCOUNT;
if (str == "fragcount") return FRAGCOUNT;
if (str == "deathcount") return DEATHCOUNT;
if (str == "hitcount") return HITCOUNT;
if (str == "hits_taken") return HITS_TAKEN;
if (str == "damagecount") return DAMAGECOUNT;
if (str == "damage_taken") return DAMAGE_TAKEN;
if (str == "health") return HEALTH;
if (str == "armor") return ARMOR;
if (str == "dead") return DEAD;
Expand Down

0 comments on commit 278d4aa

Please sign in to comment.