Skip to content

Commit

Permalink
- exposed Level.MusicVolume to ZScript
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk authored and coelckers committed Jan 20, 2020
1 parent a05a5a8 commit 0d75801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scripting/vmthunks.cpp
Expand Up @@ -3188,6 +3188,7 @@ DEFINE_FIELD(FLevelLocals, fogdensity)
DEFINE_FIELD(FLevelLocals, outsidefogdensity)
DEFINE_FIELD(FLevelLocals, skyfog)
DEFINE_FIELD(FLevelLocals, pixelstretch)
DEFINE_FIELD(FLevelLocals, MusicVolume)
DEFINE_FIELD(FLevelLocals, deathsequence)
DEFINE_FIELD_BIT(FLevelLocals, frozenstate, frozen, 1) // still needed for backwards compatibility.
DEFINE_FIELD_NAMED(FLevelLocals, i_compatflags, compatflags)
Expand Down
1 change: 1 addition & 0 deletions wadsrc/static/zscript/base.zs
Expand Up @@ -725,6 +725,7 @@ struct LevelLocals native
native readonly int outsidefogdensity;
native readonly int skyfog;
native readonly float pixelstretch;
native readonly float MusicVolume;
native name deathsequence;
native readonly int compatflags;
native readonly int compatflags2;
Expand Down

0 comments on commit 0d75801

Please sign in to comment.