Ticket #5811: INVALID_POSITION.diff
File INVALID_POSITION.diff, 1.3 KB (added by , 4 years ago) |
---|
-
source/simulation2/helpers/Position.h
19 19 #define INCLUDED_POSITION 20 20 21 21 #include "maths/Fixed.h" 22 #include "maths/FixedVector3D.h" 22 23 23 24 /** 24 25 * @file … … 40 41 */ 41 42 typedef CFixed_15_16 entity_angle_t; 42 43 44 static const CFixedVector3D INVALID_POSITION = CFixedVector3D(); 45 43 46 #endif // INCLUDED_POSITION -
source/simulation2/system/ComponentManager.cpp
20 20 #include "ComponentManager.h" 21 21 22 22 #include "lib/utf8.h" 23 #include "maths/FixedVector3D.h" 23 24 #include "ps/CLogger.h" 24 25 #include "ps/Filesystem.h" 25 26 #include "ps/Profile.h" … … 101 102 102 103 m_ScriptInterface.SetGlobal("INVALID_ENTITY", (int)INVALID_ENTITY); 103 104 m_ScriptInterface.SetGlobal("INVALID_PLAYER", (int)INVALID_PLAYER); 105 m_ScriptInterface.SetGlobal("INVALID_POSITION", (CFixedVector3D)INVALID_POSITION); 104 106 m_ScriptInterface.SetGlobal("SYSTEM_ENTITY", (int)SYSTEM_ENTITY); 105 107 106 108 m_ComponentsByInterface.resize(IID__LastNative);