Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 140121 | Differences between
and this patch

Collapse All | Expand All

(-)game/g_save.c.old (-6 lines)
Lines 750-756 void WriteGame (char *filename, qboolean Link Here
750
		gi.error ("Couldn't open %s", filename);
750
		gi.error ("Couldn't open %s", filename);
751
751
752
	memset (str, 0, sizeof(str));
752
	memset (str, 0, sizeof(str));
753
	strcpy (str, __DATE__);
754
	fwrite (str, sizeof(str), 1, f);
753
	fwrite (str, sizeof(str), 1, f);
755
754
756
	game.autosaved = autosave;
755
	game.autosaved = autosave;
Lines 779-789 void ReadGame (char *filename) Link Here
779
		gi.error ("Couldn't open %s", filename);
778
		gi.error ("Couldn't open %s", filename);
780
779
781
	fread (str, sizeof(str), 1, f);
780
	fread (str, sizeof(str), 1, f);
782
	if (strcmp (str, __DATE__))
783
	{
784
		fclose (f);
785
		gi.error ("Savegame from an older version.\n");
786
	}
787
781
788
	g_edicts =  gi.TagMalloc (game.maxentities * sizeof(g_edicts[0]), TAG_GAME);
782
	g_edicts =  gi.TagMalloc (game.maxentities * sizeof(g_edicts[0]), TAG_GAME);
789
	globals.edicts = g_edicts;
783
	globals.edicts = g_edicts;

Return to bug 140121