dungeon_crawler
diff prototype/src/tile.cc @ 14:67ae9fcb802c
loading normal map
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 19 Aug 2012 06:30:18 +0300 |
parents | e95462632f9a |
children | 0588f8a1a351 |
line diff
1.1 --- a/prototype/src/tile.cc Sun Aug 19 05:50:58 2012 +0300 1.2 +++ b/prototype/src/tile.cc Sun Aug 19 06:30:18 2012 +0300 1.3 @@ -22,6 +22,9 @@ 1.4 return false; 1.5 } 1.6 1.7 + char *saved_fname = (char*)alloca(strlen(fname) + 1); 1.8 + strcpy(saved_fname, fname); 1.9 + 1.10 unsigned int proc_flags = aiProcess_JoinIdenticalVertices | 1.11 aiProcess_Triangulate | 1.12 aiProcess_SortByPType | 1.13 @@ -39,7 +42,7 @@ 1.14 load_lights(scn); 1.15 load_meshes(scn, nodemap); 1.16 1.17 - printf("loaded tile %s: %d meshes, %d lights\n", fname, scn->mNumMeshes, scn->mNumLights); 1.18 + printf("loaded tile %s: %d meshes, %d lights\n", saved_fname, scn->mNumMeshes, scn->mNumLights); 1.19 return true; 1.20 } 1.21