Very severe bug found

Very severe bug found

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Locked
User avatar
jj
Posts: 273
Joined: 01 Apr 2006, 19:03

Very severe bug found

Post 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");
}
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Very severe bug found

Post by smoth »

Oh my god, how long has that been there?!?!? +1 his patch.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Very severe bug found

Post by Silentwings »

Please don't code in perl, even psuedocode, it still hurts.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Very severe bug found

Post by PicassoCT »

There is nobody stoping you from taking any map, replacing its titles and minimap with dsd and make a funny-trap.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Very severe bug found

Post by abma »

a lot of people vote to play the map DSD...
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Very severe bug found

Post by PicassoCT »

a lot of people voted for hitler
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Very severe bug found

Post 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!
Locked

Return to “General Discussion”