Page 1 of 1

Very severe bug found

Posted: 02 Oct 2014, 20:43
by jj
Hello respected developers,

I found a very severe bug that affects Spring on all levels.

Sorry, I don't know how to give it a name but here's the supicious code I found:

Code: Select all

$Number_of_players = 1000;
$Percentage_dsd_battles = 75%;
If ($Percentage_dsd_battles > 25%)
{
       $Number_of_players = $Number_of_players / 10;
       $Players_happiness = -50;
}
If ($Percentage_dsd_battles < 25%)
{
       $Number_of_players = $Number_of_players * 5;
       $Players_happiness = 100;
}
Sure I want to help you a bit, you should insert this code to get a fix:

Code: Select all

Global $Percentage_dsd_battle;
If !($Percentage_dsd_battles)
{
    $player_happiness = 1000000000;
    return;
}
else { 
       exec_low_level("Killall games where map_title = DeltaSiegeDry");
}

Re: Very severe bug found

Posted: 02 Oct 2014, 20:51
by smoth
Oh my god, how long has that been there?!?!? +1 his patch.

Re: Very severe bug found

Posted: 03 Oct 2014, 00:21
by Silentwings
Please don't code in perl, even psuedocode, it still hurts.

Re: Very severe bug found

Posted: 03 Oct 2014, 11:43
by PicassoCT
There is nobody stoping you from taking any map, replacing its titles and minimap with dsd and make a funny-trap.

Re: Very severe bug found

Posted: 03 Oct 2014, 13:41
by abma
a lot of people vote to play the map DSD...

Re: Very severe bug found

Posted: 03 Oct 2014, 14:13
by PicassoCT
a lot of people voted for hitler

Re: Very severe bug found

Posted: 03 Oct 2014, 16:04
by abma
locked this thread, this was discussed A LOT of times already.

edit:

don't vote for DSD if you don't want to play it!