mirror of
https://github.com/UberGames/EF2GameSource.git
synced 2024-11-10 06:31:42 +00:00
Linux fixes (excludes Makefile which still has to be modified)
This commit is contained in:
parent
a18c19c2bd
commit
4fad2ac3d9
6 changed files with 22 additions and 13 deletions
|
@ -18,7 +18,7 @@
|
|||
#define _QUATERNION_H_
|
||||
|
||||
#include <math.h>
|
||||
#include "vector.h"
|
||||
#include <game/vector.h>
|
||||
//#include "Matrix.h"
|
||||
|
||||
#define UNUSED_ARG (void)
|
||||
|
|
|
@ -55,7 +55,7 @@ class UseData : public Class
|
|||
int _useCount;
|
||||
|
||||
public:
|
||||
UseData::UseData()
|
||||
UseData()
|
||||
:_useAnim(""),
|
||||
_useType(""),
|
||||
_useThread(""),
|
||||
|
|
|
@ -182,6 +182,7 @@ inline qboolean Archiver::NoErrors
|
|||
return ( !fileerror );
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void Container<str>::Archive
|
||||
(
|
||||
Archiver &arc
|
||||
|
@ -206,6 +207,7 @@ inline void Container<str>::Archive
|
|||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void Container<Vector>::Archive
|
||||
(
|
||||
Archiver &arc
|
||||
|
@ -230,6 +232,7 @@ inline void Container<Vector>::Archive
|
|||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void Container<int>::Archive
|
||||
(
|
||||
Archiver &arc
|
||||
|
@ -254,6 +257,7 @@ inline void Container<int>::Archive
|
|||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void Container<float>::Archive
|
||||
(
|
||||
Archiver &arc
|
||||
|
@ -296,6 +300,7 @@ inline void Container<float>::Archive
|
|||
// Returns: None
|
||||
//
|
||||
//===============================================================
|
||||
template <>
|
||||
inline void Container<Class*>::Archive
|
||||
(
|
||||
Archiver &arc
|
||||
|
@ -327,6 +332,7 @@ inline void Container<Class*>::Archive
|
|||
// Returns: None
|
||||
//
|
||||
//===============================================================
|
||||
template <>
|
||||
inline void Container<Class>::Archive
|
||||
(
|
||||
Archiver &arc
|
||||
|
@ -388,6 +394,7 @@ inline void Container< SafePtr<Class*> >::Archive
|
|||
// Returns: None
|
||||
//
|
||||
//===============================================================
|
||||
template <>
|
||||
inline void Container<Entity*>::Archive
|
||||
(
|
||||
Archiver &arc
|
||||
|
@ -406,6 +413,7 @@ inline void Container<Entity*>::Archive
|
|||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void Container<EntityPtr>::Archive
|
||||
(
|
||||
Archiver &arc
|
||||
|
|
|
@ -40,6 +40,9 @@ extern Event EV_FuncBeam_ToggleDelay;
|
|||
extern Event EV_FuncBeam_FindEndpoint;
|
||||
extern Event EV_FuncBeam_EndAlpha;
|
||||
|
||||
class FuncBeam;
|
||||
FuncBeam *CreateBeam( const char *model, const char *shader, const Vector &start, const Vector &end, int numsegments = 4, float scale = 1.0f, float life = 1.0f, float damage = 0.0f, Entity *origin_target=NULL );
|
||||
|
||||
class FuncBeam : public ScriptSlave
|
||||
{
|
||||
protected:
|
||||
|
@ -90,7 +93,7 @@ class FuncBeam : public ScriptSlave
|
|||
virtual void setAngles( const Vector &ang );
|
||||
virtual void Archive( Archiver &arc );
|
||||
|
||||
friend FuncBeam *CreateBeam( const char *model, const char *shader, const Vector &start, const Vector &end, int numsegments = 4, float scale = 1.0f, float life = 1.0f, float damage = 0.0f, Entity *origin_target=NULL );
|
||||
friend FuncBeam *CreateBeam( const char *model, const char *shader, const Vector &start, const Vector &end, int numsegments, float scale, float life, float damage, Entity *origin_target);
|
||||
};
|
||||
|
||||
inline void FuncBeam::Archive
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
//
|
||||
#include "g_local.h"
|
||||
|
||||
extern game_import_t gi;
|
||||
#define CONTAINER_Error gi.Error
|
||||
#define CONTAINER_DPrintf gi.DPrintf
|
||||
#define CONTAINER_WDPrintf gi.WDPrintf
|
||||
|
|
|
@ -338,16 +338,13 @@ inline qboolean EventArgDef::isOptional
|
|||
return optional;
|
||||
}
|
||||
|
||||
#ifndef GAME_DLL
|
||||
extern "C"
|
||||
{
|
||||
// interface functions
|
||||
void L_ProcessPendingEvents( void );
|
||||
void L_ClearEventList( void );
|
||||
void L_InitEvents( void );
|
||||
void L_ShutdownEvents( void );
|
||||
}
|
||||
#endif
|
||||
void L_ArchiveEvents(Archiver& arc);
|
||||
void L_UnarchiveEvents(Archiver& arc);
|
||||
|
||||
|
||||
class Listener;
|
||||
|
|
Loading…
Reference in a new issue