Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.
/ DF Public archive

Commit

Permalink
fixed sound on client
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed May 19, 2015
1 parent ce217bf commit 935c35d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions DF Sources/g_netmsg.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1914,13 +1914,13 @@ procedure MC_RECV_ItemDestroy(P: Pointer);

if not Quiet then
begin
if gItems[ID].ItemType in [ITEM_SPHERE_BLUE, ITEM_SPHERE_WHITE, ITEM_INVUL] then
if gItems[ID].ItemType in [ITEM_SPHERE_BLUE, ITEM_SPHERE_WHITE, ITEM_INVUL, ITEM_INVIS, ITEM_MEDKIT_BLACK] then
g_Sound_PlayExAt('SOUND_ITEM_GETRULEZ',
gItems[ID].Obj.X, gItems[ID].Obj.Y)
else
if gItems[ID].ItemType in [ITEM_MEDKIT_SMALL, ITEM_MEDKIT_LARGE,
ITEM_MEDKIT_BLACK, ITEM_BOTTLE, ITEM_HELMET, ITEM_ARMOR_GREEN,
ITEM_ARMOR_BLUE, ITEM_KEY_RED, ITEM_KEY_GREEN, ITEM_KEY_BLUE] then
if gItems[ID].ItemType in [ITEM_MEDKIT_SMALL, ITEM_MEDKIT_LARGE, ITEM_BOTTLE,
ITEM_HELMET, ITEM_ARMOR_GREEN,
ITEM_ARMOR_BLUE, ITEM_KEY_RED, ITEM_KEY_GREEN, ITEM_KEY_BLUE] then
g_Sound_PlayExAt('SOUND_ITEM_GETMED',
gItems[ID].Obj.X, gItems[ID].Obj.Y)
else
Expand Down
2 changes: 1 addition & 1 deletion DF Sources/g_player.pas
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ TBotProfile = record
JET_MAX = 540; // ~30 sec
PLAYER_SUIT_TIME = 30000;
PLAYER_INVUL_TIME = 30000;
PLAYER_INVIS_TIME = 30000;
PLAYER_INVIS_TIME = 35000;
VEL_SW = 4;
VEL_FLY = 6;
ANGLE_RIGHTUP = 55;
Expand Down

0 comments on commit 935c35d

Please sign in to comment.