PiRSquared17 / quadra

Automatically exported from code.google.com/p/quadra
0 stars 0 forks source link

Increase level limit for multiplayer (e.g., peace) games #118

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From this old thread: 
http://groups.google.com/group/quadra-talk/browse_thread/thread/d7e1bb6221611cc8
/fe4e823c63db6d79?q=level&lnk=ol&

I said:
 It was possible to set
the level up to 90(!) in his modification, but of course level 60 is
about as fast as anyone could play with some semblance of survival.
Practicing  via Peace Games on level 40 became "easy"

-----
The fix for this is really simple though:
The level limit can be increased by changing line 2207 in source/quadra.cpp:
                                p.level_start = min(max(p.level_start, 1), 40);
-----
Here is that line with the three previous and three following lines of code:
                        if(command.token("level")) {
                                const char *temp = command_get_param("level <level number>");
                                p.level_start = atoi(temp);
                                p.level_start = min(max(p.level_start, 1), 40);
                        }
                        if(command.token("name")) {
                                const char *temp = command_get_param("name <game name>");

-----
I think 80 would be a good value. It'd take a cyborg to keep up with that speed 
(and so the level limit will not be an issue in the future). :)

Original issue reported on code.google.com by bgch...@gmail.com on 22 Aug 2010 at 1:53