Merge branch 'md2-fopen-error' into 'master'

More helpful error messages

See merge request STJr/SRB2!243
This commit is contained in:
Monster Iestyn 2018-07-06 14:38:59 -04:00
commit f1bba60373
1 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,10 @@
#endif
#endif
#ifndef errno
#include "errno.h"
#endif
#define NUMVERTEXNORMALS 162
float avertexnormals[NUMVERTEXNORMALS][3] = {
{-0.525731f, 0.000000f, 0.850651f},
@ -804,7 +808,7 @@ void HWR_InitMD2(void)
if (!f)
{
CONS_Printf("%s", M_GetText("Error while loading md2.dat\n"));
CONS_Printf("%s %s\n", M_GetText("Error while loading md2.dat:"), strerror(errno));
nomd2s = true;
return;
}