I need to stop changing shit when I'm tired

git-svn-id: https://svn.eduke32.com/eduke32@974 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-08-12 23:34:55 +00:00
parent c9b1da3653
commit 1ce5d73762

View file

@ -1591,9 +1591,9 @@ extern int voting, vote_map, vote_episode;
void getlevelfromfilename(const char *fn, char *volume, char *level) void getlevelfromfilename(const char *fn, char *volume, char *level)
{ {
for (*volume=MAXVOLUMES-1;*volume>=0;(*volume)--) for (*volume=0;*volume<MAXVOLUMES;(*volume)++)
{ {
for (*level=MAXLEVELS-1;*level>=0;(*level)--) for (*level=0;*level<MAXLEVELS;(*level)++)
{ {
if (map[(*volume*MAXLEVELS)+*level].filename != NULL) if (map[(*volume*MAXLEVELS)+*level].filename != NULL)
if (!Bstrcasecmp(fn, map[(*volume*MAXLEVELS)+*level].filename)) if (!Bstrcasecmp(fn, map[(*volume*MAXLEVELS)+*level].filename))