Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-vec_t Min( vec_t a, vec_t b );
+#if !defined( INCLUDED_MISC_H )
+#define INCLUDED_MISC_H
-epair_t* GetNextChainItem( epair_t* lastItem, const char* key, const char* value );
+#include "mathlib.h"
+#include <list>
+#include "str.h"
+#include "iscenegraph.h"
+
+const double MAX_ROUND_ERROR = 0.05;
+
+vec_t Min(vec_t a, vec_t b);
// reads current texture into global, returns pointer to it
-const char* GetCurrentTexture();
+const char *GetCurrentTexture();
+
+class _QERFaceData;
+
+void FillDefaultTexture(_QERFaceData *faceData, vec3_t va, vec3_t vb, vec3_t vc, const char *texture);
+
+void BuildMiniPrt(std::list<Str> *exclusionList);
+
+void MoveBlock(int dir, vec3_t min, vec3_t max, float dist);
-void FillDefaultTexture( _QERFaceData* faceData, vec3_t va, vec3_t vb, vec3_t vc, const char* texture );
+void SetInitialStairPos(int dir, vec3_t min, vec3_t max, float width);
-void Sys_ERROR( const char* text, ... );
+const scene::Path *FindEntityFromTargetname(const char *targetname);
-void BuildMiniPrt( list<Str>* exclusionList );
+char *UnixToDosPath(char *path);
-void MoveBlock( int dir, vec3_t min, vec3_t max, float dist );
-void SetInitialStairPos( int dir, vec3_t min, vec3_t max, float width );
+char *GetFilename(char *buffer, const char *filename);
-entity_s* FindEntityFromTargetname( const char* targetname, int* entNum );
+char *GetGameFilename(char *buffer, const char *filename);
-char* UnixToDosPath( char* path );
+float Determinant3x3(float a1, float a2, float a3,
+ float b1, float b2, float b3,
+ float c1, float c2, float c3);
-char* GetFilename( char* buffer, const char* filename );
-char* GetGameFilename( char* buffer, const char* filename );
+bool GetEntityCentre(const char *entity, vec3_t centre);
-float Determinant3x3( float a1, float a2, float a3,
- float b1, float b2, float b3,
- float c1, float c2, float c3 );
+void MakeNormal(const vec_t *va, const vec_t *vb, const vec_t *vc, vec_t *out);
-bool GetEntityCentre( const char* entity, vec3_t centre );
-void MakeNormal( vec_t* va, vec_t* vb, vec_t* vc, vec_t* out );
+#endif