Skip to content

Commit

Permalink
- bumped ZScript version to 4.3 and silenced the remaining deprecatio…
Browse files Browse the repository at this point in the history
…n warnings.
  • Loading branch information
coelckers committed Jan 4, 2020
1 parent 4a67bfc commit c0b9bb6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript.txt
@@ -1,4 +1,4 @@
version "4.2"
version "4.3"
#include "zscript/base.zs"
#include "zscript/sounddata.zs"
#include "zscript/mapdata.zs"
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/actors/strife/strifestuff.zs
Expand Up @@ -1863,7 +1863,7 @@ class PowerCoupling : Actor
Door_Close(225, 16);
Floor_LowerToHighestEE(44, 8);
players[i].mo.GiveInventoryType ("QuestItem6");
S_Sound ("svox/voc13", CHAN_VOICE);
S_StartSound ("svox/voc13", CHAN_VOICE);
players[i].SetLogNumber (13);
players[i].SetSubtitleNumber (13, "svox/voc13");
A_DropItem ("BrokenPowerCoupling", -1, 256);
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/base.zs
Expand Up @@ -445,7 +445,7 @@ class Object native
return level.PickPlayerStart(pnum, flags);
}
deprecated("4.3") native static void S_Sound (Sound sound_id, int channel, float volume = 1, float attenuation = ATTN_NORM, float pitch = 0.0);
native static void S_StartSound (Sound sound_id, int flags, int channel, float volume = 1, float attenuation = ATTN_NORM, float pitch = 0.0);
native static void S_StartSound (Sound sound_id, int channel, int flags = 0, float volume = 1, float attenuation = ATTN_NORM, float pitch = 0.0);
native static void S_PauseSound (bool notmusic, bool notsfx);
native static void S_ResumeSound (bool notsfx);
native static bool S_ChangeMusic(String music_name, int order = 0, bool looping = true, bool force = false);
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/ui/menu/menu.zs
Expand Up @@ -284,7 +284,7 @@ class Menu : Object native ui version("2.4")

static void MenuSound(Sound snd)
{
S_Sound (snd, CHAN_VOICE | CHAN_UI, snd_menuvolume, ATTN_NONE);
S_StartSound (snd, CHAN_VOICE, CHANF_MAYBE_LOCAL, snd_menuvolume, ATTN_NONE);
}

deprecated("4.0") static void DrawConText (int color, int x, int y, String str)
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/ui/statscreen/statscreen.zs
Expand Up @@ -715,7 +715,7 @@ class StatusScreen abstract play version("2.5")

static void PlaySound(Sound snd)
{
S_Sound(snd, CHAN_VOICE | CHAN_UI, 1, ATTN_NONE);
S_StartSound(snd, CHAN_VOICE, CHANF_MAYBE_LOCAL, 1, ATTN_NONE);
}


Expand Down

0 comments on commit c0b9bb6

Please sign in to comment.