summarylogtreecommitdiffstats
path: root/funguloids-ogre_1.6.patch
blob: 4c5f1e254574127ca64f7b7fd5bab9b11cd3189a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- include/mpakogre.h
+++ include/mpakogre.h
@@ -56,6 +56,22 @@
 	FileInfoListPtr findFileInfo(const String &pattern, bool recursive, bool dirs = false);
 
 	bool exists(const String &filename);
+
+	time_t getModifiedTime(const String& filename)
+	{
+		struct stat tagStat;
+		bool ret = (stat(mName.c_str(), &tagStat) == 0);
+
+		if (ret)
+		{
+			return tagStat.st_mtime;
+		}
+		else
+		{
+			return 0;
+		}
+
+	}
 };
 
 
--- src/scriptsystem.cpp
+++ src/scriptsystem.cpp
@@ -137,7 +137,7 @@
 	Asteroid *roid = new Asteroid(String(name), ScriptSystem::getSingleton().getSceneMgr(), String(mesh), String(mat), pos);
 	roid->setScale(scale, scale, scale);
 	roid->setMass(scale * 10.0f);
-	roid->getEntity()->setNormaliseNormals(true);
+	//roid->getEntity()->setNormaliseNormals(true);
 	return 0;
 }