mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 11:50:50 +00:00
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 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue