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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user