Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pphaneuf opened this issue Aug 22, 2014 · 1 comment
Open

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

pphaneuf opened this issue Aug 22, 2014 · 1 comment

Comments

@pphaneuf
Copy link
Member

No description provided.

@pphaneuf
Copy link
Member Author

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). :)

@pphaneuf pphaneuf assigned quadra-game and unassigned quadra-game Aug 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant