diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-01 09:43:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-01 09:43:58 +0400 |
commit | 94af7242939ef8da07f63feb3d44981ca26beab5 (patch) | |
tree | 85eb0ea4db92b98df38e2d70cd3e60b1a4d7b968 /intern | |
parent | e415fa27b019c1b00bdb443dbf39491de941aab1 (diff) |
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.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/string/STR_String.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |