"showminremain" enabled by default, "fovcompat" removed.

DOCREF showminremain fovcompat
This commit is contained in:
aurhat
2016-10-14 21:49:53 +02:00
parent a451a0fd61
commit 72dfcd73fe
18 changed files with 24 additions and 38 deletions
+1 -1
View File
@@ -928,7 +928,7 @@ void editmapsoundslot(int *n, char *name, char *maxuses) // edit slot parameters
}
result(res);
}
COMMAND(editmapsoundslot, "isssss");
COMMAND(editmapsoundslot, "iss");
void getmapsoundorigin(char *fname)
{
+1 -1
View File
@@ -802,7 +802,7 @@ void getmap(char *name, char *callback)
if(callback && *callback) execute(callback);
conoutf("map %s installed successfully", name);
}
else conoutf("\f3map download failed.");
else conoutf("\f3map download failed");
}
}
+1 -1
View File
@@ -1117,7 +1117,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p, bool demo = false)
{
extern int spawnpermission;
spawnpermission = getint(p);
if(spawnpermission == SP_REFILLMATCH) hudoutf("\f3You can now spawn to refill your team.");
if(spawnpermission == SP_REFILLMATCH) hudoutf("\f3you can spawn now to refill your team");
break;
}
case SV_FORCEDEATH:
+1 -1
View File
@@ -130,7 +130,7 @@ void adddocremark(char *remark)
lastident->remarks.add(newstring(remark));
}
void adddocref(char *name, char *ident, char *url, char *article) // FIXME... someone, please :P
void adddocref(char *name, char *ident, char *url, char *article)
{
if(!lastident || !name) return;
docref &r = lastident->references.add();
-9
View File
@@ -474,15 +474,6 @@ void scopefunc()
scopesensfunc = tan(((float)scopefov)*0.5f*RAD)/tan(fov*0.5f*RAD);
}
// map old fov values to new ones
void fovcompat(int *oldfov)
{
extern float aspect;
setfvar("fov", atan(tan(RAD/2.0f*(*oldfov)/aspect)*aspect)*2.0f/RAD, true);
}
COMMAND(fovcompat, "i");
float dynfov()
{
if(player1->weaponsel->type == GUN_SNIPER && ((sniperrifle *)player1->weaponsel)->scoped) return (float)scopefov;
+1 -1
View File
@@ -644,7 +644,7 @@ VARP(serversort, 0, 0, NUMSERVSORT-1);
VARP(serversortdir, 0, 0, 1);
VARP(showonlygoodservers, 0, 0, 1);
VAR(shownamesinbrowser, 0, 0, 1);
VARP(showminremain, 0, 0, 1);
VARP(showminremain, 0, 1, 1);
VARP(showallplayersnumber, 0, 1, 1);
VARP(serversortpreferofficial, 0, 1, 1);