updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / funguloids / funguloids-ogre_1.6.patch
blob6c92a46134005b31e42fc11e4ed3daa36f476b3b
1 --- include/mpakogre.h
2 +++ include/mpakogre.h
3 @@ -56,6 +56,22 @@
4 FileInfoListPtr findFileInfo(const String &pattern, bool recursive, bool dirs = false);
6 bool exists(const String &filename);
8 + time_t getModifiedTime(const String& filename)
9 + {
10 + struct stat tagStat;
11 + bool ret = (stat(mName.c_str(), &tagStat) == 0);
13 + if (ret)
14 + {
15 + return tagStat.st_mtime;
16 + }
17 + else
18 + {
19 + return 0;
20 + }
22 + }
26 --- src/scriptsystem.cpp
27 +++ src/scriptsystem.cpp
28 @@ -137,7 +137,7 @@
29 Asteroid *roid = new Asteroid(String(name), ScriptSystem::getSingleton().getSceneMgr(), String(mesh), String(mat), pos);
30 roid->setScale(scale, scale, scale);
31 roid->setMass(scale * 10.0f);
32 - roid->getEntity()->setNormaliseNormals(true);
33 + //roid->getEntity()->setNormaliseNormals(true);
34 return 0;