From 94af7242939ef8da07f63feb3d44981ca26beab5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 1 Jun 2009 05:43:58 +0000 Subject: YoFrankie bug [#18857] On start gives ImportError: No module named frankie_scripts GameEngine sys.path creation was broken because of a pesky slash at the end of each path name. Win32 sys.paths were also failing when running a game that switched between blend files in different directories On win32 for some reason making absolute paths from lib->name failed, work around this by using lib->filename. STR_String.h, cast to float to quiet compiler warnings. --- intern/string/STR_String.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern') diff --git a/intern/string/STR_String.h b/intern/string/STR_String.h index ec945c80c7c..34b5e3681ff 100644 --- a/intern/string/STR_String.h +++ b/intern/string/STR_String.h @@ -142,7 +142,7 @@ public: inline operator const char *() const { return pData; } inline char *Ptr() { return pData; } inline const char *ReadPtr() const { return pData; } - inline float ToFloat() const { float x=atof(pData); return x; } + inline float ToFloat() const { float x=(float)atof(pData); return x; } inline int ToInt() const { return atoi(pData); } // Operators -- cgit v1.2.3