- everything works again, some changes were apparently lost in the last merge.

This commit is contained in:
Christoph Oelckers 2019-09-19 23:39:35 +02:00
parent 8074d8251e
commit 23bc385393
2 changed files with 14 additions and 5 deletions

View file

@ -7526,10 +7526,10 @@ static void G_Startup(void)
if (g_modDir[0] != '/' && (cwd = getcwd(NULL, 0)))
{
Bchdir(g_modDir);
if (artLoadFiles("tiles000.art",MAXCACHE1DSIZE) < 0)
if (artLoadFiles("tiles%03d.art",MAXCACHE1DSIZE) < 0)
{
Bchdir(cwd);
if (artLoadFiles("tiles000.art",MAXCACHE1DSIZE) < 0)
if (artLoadFiles("tiles%03d.art",MAXCACHE1DSIZE) < 0)
G_GameExit("Failed loading art.");
}
Bchdir(cwd);
@ -7538,7 +7538,7 @@ static void G_Startup(void)
#endif
}
else if (artLoadFiles("tiles000.art",MAXCACHE1DSIZE) < 0)
else if (artLoadFiles("tiles%03d.art",MAXCACHE1DSIZE) < 0)
G_GameExit("Failed loading art.");
}

View file

@ -36,8 +36,17 @@ float osdscale = 1.f, osdrscale = 1.f;
#endif
float osdscale2 = 1.f, osdrscale2 = 1.f;
#define OSD_SCALE(x) (int32_t)Blrintf(osdscale*osdscale2*(float)(x))
#define OSD_SCALEDIV(x) (int32_t)Blrintf((float)(x) * osdrscale * osdrscale2)
template<class valtype>
int32_t OSD_SCALE(valtype x)
{
return (int32_t)Blrintf(osdscale * osdscale2 * (float)(x));
}
template<class valtype>
int32_t OSD_SCALEDIV(valtype x)
{
return (int32_t)Blrintf((float)(x)* osdrscale * osdrscale2);
}
#define OSDCHAR_WIDTH (tilesiz[STARTALPHANUM + 'W' - '!'].x)
#define OSDCHAR_HEIGHT (tilesiz[STARTALPHANUM + 'W' - '!'].y + 1)