Few more files compile.
This commit is contained in:
parent
936a5198e4
commit
8b4a564235
9 changed files with 52 additions and 31 deletions
16
Makefile
16
Makefile
|
@ -2,6 +2,7 @@ CC = gcc
|
||||||
NASM = nasm
|
NASM = nasm
|
||||||
|
|
||||||
CFLAGS = -g -Wall -Iinclude -Iwin95 -Iavp -Iavp/win95 -Iavp/support -Iavp/win95/frontend
|
CFLAGS = -g -Wall -Iinclude -Iwin95 -Iavp -Iavp/win95 -Iavp/support -Iavp/win95/frontend
|
||||||
|
CXXFLAGS = $(CFLAGS)
|
||||||
LDLIBS = -lm # /home/relnev/ElectricFence-2.2.2/libefence.a
|
LDLIBS = -lm # /home/relnev/ElectricFence-2.2.2/libefence.a
|
||||||
|
|
||||||
CFLAGS += `sdl-config --cflags`
|
CFLAGS += `sdl-config --cflags`
|
||||||
|
@ -10,6 +11,8 @@ LDLIBS += `sdl-config --libs`
|
||||||
AFLAGS = -g -Iinclude/ -w+macro-params -w+orphan-labels -w+number-overflow
|
AFLAGS = -g -Iinclude/ -w+macro-params -w+orphan-labels -w+number-overflow
|
||||||
|
|
||||||
ROOT = afont.c frustum.c kshape.c map.c maths.c mem3dc.c mem3dcpp.cpp module.c morph.c mslhand.c object.c shpanim.c sphere.c tables.c vdb.c version.c
|
ROOT = afont.c frustum.c kshape.c map.c maths.c mem3dc.c mem3dcpp.cpp module.c morph.c mslhand.c object.c shpanim.c sphere.c tables.c vdb.c version.c
|
||||||
|
AVP = ai_sight.c
|
||||||
|
# avpitems.cpp
|
||||||
|
|
||||||
# the following should really be autogenerated...
|
# the following should really be autogenerated...
|
||||||
|
|
||||||
|
@ -19,17 +22,18 @@ OBJNAMES1 = $(addsuffix .o,$(basename $(1)))
|
||||||
|
|
||||||
ROOTSRC = $(ROOT)
|
ROOTSRC = $(ROOT)
|
||||||
ROOTOBJ = $(call OBJNAMES1,$(ROOT))
|
ROOTOBJ = $(call OBJNAMES1,$(ROOT))
|
||||||
|
AVPSRC = $(call SRCNAMES,$(AVP),avp)
|
||||||
|
AVPOBJ = $(call OBJNAMES,$(AVP),avp)
|
||||||
|
|
||||||
|
SRC = $(ROOTSRC) $(AVPSRC)
|
||||||
SRC = $(ROOTSRC)
|
OBJ = $(ROOTOBJ) $(AVPOBJ)
|
||||||
OBJ = $(ROOTOBJ)
|
|
||||||
|
|
||||||
.SUFFIXES: .asm
|
.SUFFIXES: .asm
|
||||||
|
|
||||||
all: avp
|
all: AvP
|
||||||
|
|
||||||
avp: depend $(OBJ)
|
AvP: depend $(OBJ)
|
||||||
gcc -o avp $(OBJ) $(LDLIBS)
|
gcc -o AvP $(OBJ) $(LDLIBS)
|
||||||
|
|
||||||
compile: $(OBJ)
|
compile: $(OBJ)
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,15 @@
|
||||||
#include "dynblock.h"
|
#include "dynblock.h"
|
||||||
#include "dynamics.h"
|
#include "dynamics.h"
|
||||||
#include "los.h"
|
#include "los.h"
|
||||||
#include "ShowCmds.h"
|
#include "showcmds.h"
|
||||||
#include "equipmnt.h"
|
#include "equipmnt.h"
|
||||||
#include "bh_marin.h"
|
#include "bh_marin.h"
|
||||||
#include "bh_xeno.h"
|
#include "bh_xeno.h"
|
||||||
#include "targeting.h"
|
#include "targeting.h"
|
||||||
#include "bh_weap.h"
|
#include "bh_weap.h"
|
||||||
|
#include "bh_agun.h"
|
||||||
|
|
||||||
#include "AI_Sight.h"
|
#include "ai_sight.h"
|
||||||
|
|
||||||
#define UseLocalAssert Yes
|
#define UseLocalAssert Yes
|
||||||
#include "ourasert.h"
|
#include "ourasert.h"
|
||||||
|
|
|
@ -74,7 +74,8 @@ enum AVPMENUGFX_ID
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
char *FilenamePtr;
|
char *FilenamePtr;
|
||||||
LPDIRECTDRAWSURFACE ImagePtr;
|
// LPDIRECTDRAWSURFACE ImagePtr;
|
||||||
|
|
||||||
AW_BACKUPTEXTUREHANDLE hBackup;
|
AW_BACKUPTEXTUREHANDLE hBackup;
|
||||||
int Width;
|
int Width;
|
||||||
int Height;
|
int Height;
|
||||||
|
|
|
@ -314,7 +314,9 @@ typedef struct
|
||||||
{
|
{
|
||||||
char Name[40];
|
char Name[40];
|
||||||
char levelIndex;//local level index
|
char levelIndex;//local level index
|
||||||
GUID Guid;
|
// GUID Guid;
|
||||||
|
int Guid;
|
||||||
|
|
||||||
BOOL AllowedToJoin;
|
BOOL AllowedToJoin;
|
||||||
} SESSION_DESC;
|
} SESSION_DESC;
|
||||||
#define MAX_NO_OF_SESSIONS 10
|
#define MAX_NO_OF_SESSIONS 10
|
||||||
|
|
|
@ -7228,13 +7228,11 @@ void RenderBoomSphere(VECTORCH *position, int radius)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int Alpha[SPHERE_VERTICES];
|
int Alpha[SPHERE_VERTICES];
|
||||||
void RenderExplosionSurface(VOLUMETRIC_EXPLOSION *explosionPtr)
|
void RenderExplosionSurface(VOLUMETRIC_EXPLOSION *explosionPtr)
|
||||||
{
|
{
|
||||||
extern D3DTEXTUREHANDLE FMVTextureHandle[];
|
|
||||||
int red,green,blue;
|
int red,green,blue;
|
||||||
|
|
||||||
switch (CurrentVisionMode)
|
switch (CurrentVisionMode)
|
||||||
|
|
12
src/maths.c
12
src/maths.c
|
@ -1,15 +1,3 @@
|
||||||
|
|
||||||
#if PSX
|
|
||||||
#include <kernel.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <libetc.h>
|
|
||||||
#include <libgte.h>
|
|
||||||
#include <libgpu.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <inline_c.h>
|
|
||||||
#include <gtemac.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "3dc.h"
|
#include "3dc.h"
|
||||||
#include "inline.h"
|
#include "inline.h"
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
/* I N C L U D E D S ************************************************** */
|
/* I N C L U D E D S ************************************************** */
|
||||||
#include "advwin32.h"
|
#include "advwin32.h"
|
||||||
#ifndef DB_NOWINDOWS
|
#ifndef DB_NOWINDOWS
|
||||||
#include <windows.h>
|
// #include <windows.h>
|
||||||
#include "advwin32.h"
|
#include "advwin32.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -292,6 +292,8 @@ struct db_dd_mode_tag
|
||||||
/* Don't prototype anything or declare globals if NDEBUG is defined. */
|
/* Don't prototype anything or declare globals if NDEBUG is defined. */
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
|
||||||
|
#define __cdecl
|
||||||
|
|
||||||
/* New formatted debugging fns. */
|
/* New formatted debugging fns. */
|
||||||
extern void __cdecl db_logf_fired(const char *fmtStrP, ...);
|
extern void __cdecl db_logf_fired(const char *fmtStrP, ...);
|
||||||
extern void __cdecl db_printf_fired(int x, int y, const char *fmtStrP, ...);
|
extern void __cdecl db_printf_fired(int x, int y, const char *fmtStrP, ...);
|
||||||
|
|
|
@ -1,6 +1,15 @@
|
||||||
#ifndef INLINE_INCLUDED
|
#ifndef INLINE_INCLUDED
|
||||||
#define INLINE_INCLUDED
|
#define INLINE_INCLUDED
|
||||||
|
|
||||||
|
#ifndef min
|
||||||
|
#define min(a, b) (((a) < (b)) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef max
|
||||||
|
#define max(a, b) (((a) > (b)) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if SUPPORT_MMX
|
#if SUPPORT_MMX
|
||||||
#include "mmx_math.h"
|
#include "mmx_math.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -25,12 +25,15 @@ extern "C" {
|
||||||
|
|
||||||
#define Hardware2dTextureClipping No
|
#define Hardware2dTextureClipping No
|
||||||
|
|
||||||
|
#ifndef min
|
||||||
|
#define min(a, b) (((a) < (b)) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
#ifndef max
|
||||||
|
#define max(a, b) (((a) > (b)) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
|
||||||
Types
|
/* Types */
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
typedef int BOOL;
|
typedef int BOOL;
|
||||||
|
|
||||||
|
@ -56,6 +59,19 @@ typedef struct LONGLONGCH {
|
||||||
} LONGLONGCH;
|
} LONGLONGCH;
|
||||||
|
|
||||||
|
|
||||||
|
typedef int FILETIME;
|
||||||
|
|
||||||
|
typedef struct SYSTEMTIME
|
||||||
|
{
|
||||||
|
//#warning "SYSTEMTIME format is not correct"
|
||||||
|
int wHour;
|
||||||
|
int wMinute;
|
||||||
|
int wSecond;
|
||||||
|
int wYear;
|
||||||
|
int wMonth;
|
||||||
|
int wDay;
|
||||||
|
} SYSTEMTIME;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Sine and Cosine
|
Sine and Cosine
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue