mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
Try and be a bit more portable; allow .map support in browser ports.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6186 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
75f11ba33b
commit
242dea4676
3 changed files with 12 additions and 12 deletions
|
@ -30,16 +30,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#if !defined(__CYGWIN__) && !defined(__DJGPP__)
|
|
||||||
# include <sys/ipc.h>
|
|
||||||
# include <sys/shm.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
|
@ -315,7 +315,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
// #undef Q3SERVER //match Q3CLIENT
|
// #undef Q3SERVER //match Q3CLIENT
|
||||||
// #undef Q2BSPS //emscripten can't cope with bss, leading to increased download time. too lazy to fix.
|
// #undef Q2BSPS //emscripten can't cope with bss, leading to increased download time. too lazy to fix.
|
||||||
// #undef Q3BSPS //emscripten can't cope with bss, leading to increased download time. too lazy to fix.
|
// #undef Q3BSPS //emscripten can't cope with bss, leading to increased download time. too lazy to fix.
|
||||||
#undef TERRAIN
|
// #undef TERRAIN
|
||||||
// #undef PSET_SCRIPT //bss+size
|
// #undef PSET_SCRIPT //bss+size
|
||||||
#define GLSLONLY //pointless having the junk
|
#define GLSLONLY //pointless having the junk
|
||||||
#define GLESONLY //should reduce the conditions a little
|
#define GLESONLY //should reduce the conditions a little
|
||||||
|
|
|
@ -3794,17 +3794,22 @@ static void Cmd_set_f(void)
|
||||||
char name[256];
|
char name[256];
|
||||||
const char *desc = NULL;
|
const char *desc = NULL;
|
||||||
|
|
||||||
if (Cmd_Argc()<3)
|
|
||||||
{
|
|
||||||
Con_TPrintf("%s %s <equation>\n", Cmd_Argv(0), *Cmd_Argv(1)?Cmd_Argv(1):"<var>");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!strcmp(Cmd_Argv(0), "set_calc") || !strcmp(Cmd_Argv(0), "seta_calc"))
|
if (!strcmp(Cmd_Argv(0), "set_calc") || !strcmp(Cmd_Argv(0), "seta_calc"))
|
||||||
docalc = true;
|
docalc = true;
|
||||||
else
|
else
|
||||||
docalc = false;
|
docalc = false;
|
||||||
|
|
||||||
|
if (Cmd_Argc()<3)
|
||||||
|
{
|
||||||
|
if (docalc)
|
||||||
|
Con_TPrintf("%s %s <equation>\n", Cmd_Argv(0), *Cmd_Argv(1)?Cmd_Argv(1):"<var>");
|
||||||
|
else if (!strcmp(Cmd_Argv(0), "setfl"))
|
||||||
|
Con_TPrintf("%s %s <value> <a|u|s>\n", Cmd_Argv(0), *Cmd_Argv(1)?Cmd_Argv(1):"<var>");
|
||||||
|
else
|
||||||
|
Con_TPrintf("%s %s <value>\n", Cmd_Argv(0), *Cmd_Argv(1)?Cmd_Argv(1):"<var>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!strncmp(Cmd_Argv(0), "seta", 4) && !Cmd_FromGamecode())
|
if (!strncmp(Cmd_Argv(0), "seta", 4) && !Cmd_FromGamecode())
|
||||||
forceflags |= CVAR_ARCHIVE;
|
forceflags |= CVAR_ARCHIVE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue