Merge branch 'md2-fopen-error' into 'master'
More helpful error messages See merge request STJr/SRB2!243
This commit is contained in:
commit
f1bba60373
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user