quadra-game / quadra

An addictive action puzzle game with single player and multiplayer capabilities (Internet or LAN).
GNU Lesser General Public License v2.1
28 stars 18 forks source link

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

Open pphaneuf opened 10 years ago

pphaneuf commented 10 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). :)