engine/EngineServerEntity.c
/*
==============================================================================

					ARCHIVING GLOBALS

FIXME: need to tag constants, doesn't really work
==============================================================================
*/
ARCHIVING GLOBALS
FIXME: need to tag constants, doesn't really work
ARCHIVING GLOBALS FIXME : need to tag constants doesn ' t really work
void ED_WriteGlobals (FILE *f)
{
#if 0
	ddef_t		*def;
	int			i;
	char		*name;
	int			type;
	fprintf (f,"{\n");
	for(i = 0; i < progs->numglobaldefs; i++)
	{
		def = &pr_globaldefs[i];
		type = def->type;
		if ( !(def->type & DEF_SAVEGLOBAL) )
			continue;
		type &= ~DEF_SAVEGLOBAL;
		if(type != EV_STRING && type != EV_FLOAT && type != ev_entity)
			continue;
		name = pr_strings + def->s_name;
		fprintf (f,"\"%s\" ", name);
		fprintf (f,"\"%s\"\n", PR_UglyValueString(type, (eval_t *)&pr_globals[def->ofs]));
	}
	fprintf (f,"}\n");
#else
	Con_Printf("ED_WriteGlobals\n");
#endif
}
void ED_WriteGlobals ( FILE * f ) { #if 0 ddef_t * def ; int i ; char * name ; int type ; fprintf ( f , " \n " ) ; for ( i = 0 ; i < progs -> numglobaldefs ; i ++ ) { def = & pr_globaldefs [ i ] ; type = def -> type ; if ( ! ( def -> type & DEF_SAVEGLOBAL ) ) continue ; type &= ~ DEF_SAVEGLOBAL ; if ( type != EV_STRING && type != EV_FLOAT && type != ev_entity ) continue ; name = pr_strings + def -> s_name ; fprintf ( f , " \" \" " , name ) ; fprintf ( f , " \" \" \n " , PR_UglyValueString ( type , ( eval_t * ) & pr_globals [ def -> ofs ] ) ) ; } fprintf ( f , " \n " ) ; #else Con_Printf ( " \n " ) ; #endif }
ARCHIVING GLOBALS
FIXME: need to tag constants, doesn't really work
ARCHIVING GLOBALS FIXME : need to tag constants doesn ' t really work