/*
Copyright (C) 1996-1997 Id Software, Inc.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/
// cmodel.c

#include "common.h"

typedef struct {
	char *mapname;
	int original;
	int gpl;
} csentry_t;

static csentry_t table[] = {
	{ "dm6", 0x5208da2b, 0xffafbed2 },
	{ NULL, 0, 0 },
};

int Com_TranslateMapChecksum (char *mapname, int checksum)
{
	csentry_t *p;

	Com_DPrintf ("Map checksum (%s): 0x%x\n", mapname, checksum);

	for (p = table; p->mapname; p++)
		if (!strcmp(p->mapname, mapname)) {
			if (checksum == p->gpl)
				return p->original;
			else
				return checksum;
		}

	return checksum;
}


/* vi: set noet ts=4 sts=4 ai sw=4: */
