fixed md2 loading, fixed typo

This commit is contained in:
Sandro Sobczyński
2020-11-03 20:10:09 +01:00
parent b75b2d6e4f
commit 9e3ed74b45
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ void DffLoader::load(MeshFrame *o_result, char *t_filename, float t_scale, u8 t_
PRINT_LOG("Loading dff file"); PRINT_LOG("Loading dff file");
FILE *file = fopen(t_filename, "rb"); FILE *file = fopen(t_filename, "rb");
if (file == NULL) if (file == NULL)
PRINT_ERR("Failed to load .obj file!"); PRINT_ERR("Failed to load .dff file!");
fseek(file, 0L, SEEK_END); fseek(file, 0L, SEEK_END);
long fileSize = ftell(file); long fileSize = ftell(file);
u8 data[fileSize]; u8 data[fileSize];
+1 -1
View File
@@ -85,7 +85,7 @@ MeshFrame *MD2Loader::load(u32 &o_framesCount, char *t_subpath, char *t_nameWith
fclose(file); fclose(file);
MeshFrame *resultFrames = new MeshFrame[26]; MeshFrame *resultFrames = new MeshFrame[framesCount];
frame_t *frame; frame_t *frame;
Vector3 tempVec = Vector3(); Vector3 tempVec = Vector3();