Skip to content

Commit

Permalink
Fixed crash in Doom64tc when activating the automap. Does not have th…
Browse files Browse the repository at this point in the history
…e patches currently used for the marked points. FIXME: use a different set of patches.
  • Loading branch information
danij committed Aug 28, 2006
1 parent 21258fa commit 6ad47d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doomsday/plugins/common/src/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,12 +940,16 @@ void AM_loadPics(void)
int i;
char namebuf[9];

#if !__DOOM64TC__
// FIXME >
for(i = 0; i < 10; i++)
{
MARKERPATCHES; // Check the macros eg: "sprintf(namebuf, "AMMNUM%d", i)" for jDoom

markpnums[i] = W_GetNumForName(namebuf);
}
// < FIXME
#endif

if (maplumpnum != 0){
maplumpnum = W_GetNumForName("AUTOPAGE");
Expand Down Expand Up @@ -2000,6 +2004,8 @@ void AM_drawMarks(void)
{
int i, fx, fy, w, h;

#if !__DOOM64TC__
// FIXME >
for(i = 0; i < AM_NUMMARKPOINTS; i++)
{
if(markpoints[i].pos[VX] != -1)
Expand All @@ -2013,6 +2019,8 @@ void AM_drawMarks(void)
GL_DrawPatch_CS(fx, fy, markpnums[i]);
}
}
// < FIXME
#endif
}

/*
Expand Down

0 comments on commit 6ad47d2

Please sign in to comment.