- added gameaholic.com rune server list
- game and gametype are now displayed in LaunchInfo.txt git-svn-id: http://svn.code.sf.net/p/xqf/code/trunk@103 d2ac09be-c843-0410-8b1f-f8a84130e0ec
This commit is contained in:
parent
aaff55d292
commit
eaf590ee50
@ -1,3 +1,7 @@
|
||||
Oct 13, 2001: Ludwig Nussel <l-n@users.sourceforge.net>
|
||||
- added gameaholic.com rune server list
|
||||
- game and gametype are now displayed in LaunchInfo.txt
|
||||
|
||||
Oct 07, 2001: Ludwig Nussel <l-n@users.sourceforge.net>
|
||||
- changed default commandline for qs & qws for quakeforge
|
||||
- added default commandlines for rune,tribes2,wolf and ut
|
||||
|
@ -856,6 +856,8 @@ static char *builtin_masters_update_info[] = {
|
||||
"ADD GPS http://www.gameaholic.com/servers/qspy-turok2 Turok 2 - gameaholic.com",
|
||||
"ADD GPS http://www.gameaholic.com/servers/qspy-shogo Shogo - gameaholic.com",
|
||||
|
||||
"ADD RUNESRV http://www.gameaholic.com/servers/qspy-rune gameaholic.com",
|
||||
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -597,6 +597,7 @@ static void launch_close_handler (struct stat_job *job, int killed) {
|
||||
char *fn;
|
||||
char *temp_name;
|
||||
char *temp_mod;
|
||||
char *temp_game;
|
||||
|
||||
char *launchargv[4];
|
||||
int pid;
|
||||
@ -706,18 +707,31 @@ static void launch_close_handler (struct stat_job *job, int killed) {
|
||||
if (f) {
|
||||
|
||||
temp_name = cur_server->name;
|
||||
temp_game = cur_server->game;
|
||||
temp_mod = cur_server->gametype;
|
||||
|
||||
if (!temp_name)
|
||||
temp_name = "";
|
||||
if (!temp_mod)
|
||||
temp_mod = "";
|
||||
|
||||
fprintf (f, "GameType %s\n", games[cur_server->type].name);
|
||||
fprintf (f, "ServerName %s\n", temp_name);
|
||||
fprintf (f, "ServerAddr %s:%d\n", inet_ntoa (cur_server->host->ip),
|
||||
cur_server->port);
|
||||
fprintf (f, "ServerMod %s\n", temp_mod);
|
||||
|
||||
fprintf (f, "ServerMod ");
|
||||
if(temp_game)
|
||||
{
|
||||
fprintf (f, "%s", temp_game);
|
||||
}
|
||||
if(temp_game&&temp_mod)
|
||||
{
|
||||
fprintf (f, ", ");
|
||||
}
|
||||
if(temp_mod)
|
||||
{
|
||||
fprintf (f, "%s", temp_mod);
|
||||
}
|
||||
fprintf (f, "\n");
|
||||
|
||||
fclose (f);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user