Skip to content

Commit

Permalink
Doom|Automap: Position map title according to title patch's height
Browse files Browse the repository at this point in the history
If the title patch is replaced with something taller (e.g., in Alien
Vendetta), the map number should be displayed lower.
  • Loading branch information
skyjake committed Jul 18, 2013
1 parent 736cbad commit 4613d68
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doomsday/plugins/common/src/hu_stuff.cpp
Expand Up @@ -1490,7 +1490,16 @@ void Hu_DrawMapTitle(float alpha, boolean mapIdInsteadOfAuthor)
patchId = (mapNum < pMapNamesSize? pMapNames[mapNum] : 0);
WI_DrawPatchXY3(patchId, Hu_ChoosePatchReplacement2(PRM_ALLOW_TEXT, patchId, lname), 0, 0, ALIGN_TOP, 0, DTF_ONLY_SHADOW);

y += 14;
patchinfo_t patchInfo;
if(R_GetPatchInfo(patchId, &patchInfo))
{
y += patchInfo.geometry.size.height + 2;
}
else
{
y += 14;
}

#elif __JHERETIC__ || __JHEXEN__
if(lname)
{
Expand Down

0 comments on commit 4613d68

Please sign in to comment.