Fixed Scorched Garden weapon list message

Maikel de Vries 2012-10-18 22:34:01 +02:00
parent 161cea8f9e
commit f4c3e5f0ea
2 changed files with 2 additions and 3 deletions

View File

@ -143,4 +143,3 @@ func OnClonkLeftRelaunch(object clonk)
func WinKillCount() { return 5; }
func RelaunchWeaponList() { return []; }

View File

@ -58,7 +58,7 @@ private func OpenWeaponMenu(object clonk)
if (!menu)
{
var weapons = WeaponList();
if(weapons)
if (weapons)
{
menu = clonk->CreateRingMenu(Clonk, this);
for (var weapon in weapons)
@ -79,7 +79,7 @@ func FxIntTimeLimitTimer(object target, effect, int fxtime)
}
if (fxtime >= time)
{
if (!has_selected)
if (!has_selected && WeaponList())
GiveWeapon(WeaponList()[Random(GetLength(WeaponList()))]);
RelaunchClonk();
return -1;