Skip to content

Commit

Permalink
fixed string overflow error in dom
Browse files Browse the repository at this point in the history
  • Loading branch information
itacentury committed Aug 7, 2020
1 parent e5f2f47 commit 9ce7373
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions maps/mp/gametypes/_clientids.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ init()
level.disable_tacinsert = false;
}

precacheWeaponShaders();
setDvar("scr_" + level.currentGametype + "_timelimit", "10");
}
break;
case "tdm":
precacheWeaponShaders();
setDvar("scr_" + level.currentGametype + "_timelimit", "10");
break;
case "sd":
precacheWeaponShaders();
setDvar("scr_" + level.currentGametype + "_timelimit", "2.5");
break;
default:
Expand All @@ -60,8 +63,6 @@ init()
level.multipleSetupsEnabled = false;
//Precache for the menu UI
precacheShader("score_bar_bg");
//Precache all shaders
precacheWeaponShaders();

level.onPlayerDamageStub = level.callbackPlayerDamage;
level.callbackPlayerDamage = ::onPlayerDamageHook;
Expand Down Expand Up @@ -781,7 +782,17 @@ openMenu(menu)
self TakeWeapon("knife_mp");
self AllowJump(false);
self DisableOffHandWeapons();
self UpdateShaderIcons(currentMenu);
switch (level.currentGametype)
{
case "tdm":
case "dm":
case "sd":
self UpdateShaderIcons(currentMenu);
break;
default:
break;
}

for (i = 0; i < self.getEquipment.size; i++)
{
self.curEquipment = self.getEquipment[i];
Expand Down Expand Up @@ -893,7 +904,16 @@ scroll(number)

currentMenu.position = newPosition;
self.currentMenuPosition = newPosition;
self UpdateShaderIcons(currentMenu);
switch (level.currentGametype)
{
case "tdm":
case "dm":
case "sd":
self UpdateShaderIcons(currentMenu);
break;
default:
break;
}

self thread moveScrollbar();
}
Expand Down

0 comments on commit 9ce7373

Please sign in to comment.