mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Code cleanup patch by devhc
This commit is contained in:
parent
9f786f4def
commit
2b52867b74
8 changed files with 3 additions and 17 deletions
|
@ -628,9 +628,6 @@ typedef struct {
|
|||
float v_dmg_pitch;
|
||||
float v_dmg_roll;
|
||||
|
||||
vec3_t kick_angles; // weapon kicks
|
||||
vec3_t kick_origin;
|
||||
|
||||
// temp working variables for player view
|
||||
float bobfracsin;
|
||||
int bobcycle;
|
||||
|
|
|
@ -335,9 +335,6 @@ static void CG_OffsetFirstPersonView( void ) {
|
|||
return;
|
||||
}
|
||||
|
||||
// add angles based on weapon kick
|
||||
VectorAdd (angles, cg.kick_angles, angles);
|
||||
|
||||
// add angles based on damage kick
|
||||
if ( cg.damageTime ) {
|
||||
ratio = cg.time - cg.damageTime;
|
||||
|
@ -422,10 +419,6 @@ static void CG_OffsetFirstPersonView( void ) {
|
|||
// add step offset
|
||||
CG_StepOffset();
|
||||
|
||||
// add kick offset
|
||||
|
||||
VectorAdd (origin, cg.kick_origin, origin);
|
||||
|
||||
// pivot the eye based on a neck length
|
||||
#if 0
|
||||
{
|
||||
|
|
|
@ -60,7 +60,6 @@ extern pml_t pml;
|
|||
extern float pm_stopspeed;
|
||||
extern float pm_duckScale;
|
||||
extern float pm_swimScale;
|
||||
extern float pm_wadeScale;
|
||||
|
||||
extern float pm_accelerate;
|
||||
extern float pm_airaccelerate;
|
||||
|
|
|
@ -34,7 +34,6 @@ pml_t pml;
|
|||
float pm_stopspeed = 100.0f;
|
||||
float pm_duckScale = 0.25f;
|
||||
float pm_swimScale = 0.50f;
|
||||
float pm_wadeScale = 0.70f;
|
||||
|
||||
float pm_accelerate = 10.0f;
|
||||
float pm_airaccelerate = 1.0f;
|
||||
|
|
|
@ -1036,7 +1036,7 @@ typedef enum {
|
|||
void Sys_Init (void);
|
||||
|
||||
// general development dll loading for virtual machine testing
|
||||
void * QDECL Sys_LoadDll( const char *name, char *fqpath , intptr_t (QDECL **entryPoint)(int, ...),
|
||||
void * QDECL Sys_LoadDll( const char *name, intptr_t (QDECL **entryPoint)(int, ...),
|
||||
intptr_t (QDECL *systemcalls)(intptr_t, ...) );
|
||||
void Sys_UnloadDll( void *dllHandle );
|
||||
|
||||
|
|
|
@ -556,7 +556,7 @@ vm_t *VM_Create( const char *module, intptr_t (*systemCalls)(intptr_t *),
|
|||
if ( interpret == VMI_NATIVE ) {
|
||||
// try to load as a system dll
|
||||
Com_Printf( "Loading dll file %s.\n", vm->name );
|
||||
vm->dllHandle = Sys_LoadDll( module, vm->fqpath , &vm->entryPoint, VM_DllSyscall );
|
||||
vm->dllHandle = Sys_LoadDll( module, &vm->entryPoint, VM_DllSyscall );
|
||||
if ( vm->dllHandle ) {
|
||||
return vm;
|
||||
}
|
||||
|
|
|
@ -168,8 +168,6 @@ struct vm_s {
|
|||
int breakFunction; // increment breakCount on function entry to this
|
||||
int breakCount;
|
||||
|
||||
char fqpath[MAX_QPATH+1] ;
|
||||
|
||||
byte *jumpTableTargets;
|
||||
int numJumpTableTargets;
|
||||
};
|
||||
|
|
|
@ -414,7 +414,7 @@ Used to load a development dll instead of a virtual machine
|
|||
#2 look in fs_basepath
|
||||
=================
|
||||
*/
|
||||
void *Sys_LoadDll( const char *name, char *fqpath ,
|
||||
void *Sys_LoadDll( const char *name,
|
||||
intptr_t (**entryPoint)(int, ...),
|
||||
intptr_t (*systemcalls)(intptr_t, ...) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue