- "po" reverted

This commit is contained in:
Christoph Oelckers 2020-07-06 23:33:33 +02:00
parent e8ebeefaad
commit dca7e158bb
6 changed files with 24 additions and 38 deletions

View file

@ -119,8 +119,8 @@ int haskey(int sect, int snum);
void breakwall(short newpn, short spr, short dawallnum); void breakwall(short newpn, short spr, short dawallnum);
void callsound2(int soundNum, int playerNum); void callsound2(int soundNum, int playerNum);
int callsound(int sectNum,int spriteNum); int callsound(int sectnum,int snum);
int hitasprite(int spriteNum,short *hitSprite); int hitasprite(int snum,short *hitSprite);
int findplayer(const spritetype* s, int* dist); int findplayer(const spritetype* s, int* dist);
void operatejaildoors(int hitag); void operatejaildoors(int hitag);
void allignwarpelevators(void); void allignwarpelevators(void);
@ -136,14 +136,14 @@ int getanimationgoal(const int* animPtr);
bool isanearoperator(int lotag); bool isanearoperator(int lotag);
bool isanunderoperator(int lotag); bool isanunderoperator(int lotag);
int setanimation(short animsect, int* animptr, int thegoal, int thevel); int setanimation(short animsect, int* animptr, int thegoal, int thevel);
void dofurniture(int wallNum, int sectNum, int playerNum); void dofurniture(int wallNum, int sectnum, int playerNum);
void dotorch(); void dotorch();
int hitawall(struct player_struct* pPlayer, int* hitWall); int hitawall(struct player_struct* pl, int* hitWall);
int hits(int spriteNum); int hits(int snum);
void clearsectinterpolate(int sprnum); void clearsectinterpolate(int sprnum);
void setsectinterpolate(int sprnum); void setsectinterpolate(int sprnum);
int LocateTheLocator(int const tag, int const sectNum); int LocateTheLocator(int const tag, int const sectnum);
void clearcamera(player_struct* ps); void clearcamera(player_struct* ps);
void showtwoscreens(CompletionFunc func); void showtwoscreens(CompletionFunc func);
@ -151,16 +151,16 @@ void doorders(CompletionFunc func);
void execute(int s, int p, int d); void execute(int s, int p, int d);
void makeitfall(int s); void makeitfall(int s);
int furthestangle(int spriteNum, int angDiv); int furthestangle(int snum, int angDiv);
void getglobalz(int s); void getglobalz(int s);
int getincangle(int c, int n); int getincangle(int c, int n);
void OnEvent(int id, int pnum = -1, int snum = -1, int dist = -1); void OnEvent(int id, int pnum = -1, int snum = -1, int dist = -1);
short EGS(short whatsect, int s_x, int s_y, int s_z, short s_pn, signed char s_s, signed char s_xr, signed char s_yr, short s_a, short s_ve, int s_zv, short s_ow, signed char s_ss); short EGS(short whatsect, int s_x, int s_y, int s_z, short s_pn, signed char s_s, signed char s_xr, signed char s_yr, short s_a, short s_ve, int s_zv, short s_ow, signed char s_ss);
void ceilingglass(int spriteNum, int sectNum, int glassCnt); void ceilingglass(int snum, int sectnum, int cnt);
void spriteglass(int spriteNum, int glassCnt); void spriteglass(int snum, int cnt);
void lotsofcolourglass(int spriteNum, int wallNum, int glassCnt); void lotsofcolourglass(int snum, int wallNum, int cnt);
void lotsofglass(int spriteNum, int wallnum, int glassCnt); void lotsofglass(int snum, int wallnum, int cnt);
void addspritetodelete(int spnum); void addspritetodelete(int spnum);
void checkavailinven(struct player_struct* p); void checkavailinven(struct player_struct* p);
@ -185,4 +185,10 @@ void clearfifo(void);
void setmapfog(int fogtype); void setmapfog(int fogtype);
void prelevel_common(int g); void prelevel_common(int g);
void FTA(int q, struct player_struct* p);
void OnMotorcycle(player_struct *pl, int snum);
void OffMotorcycle(player_struct *pl);
void OnBoat(player_struct *pl, int snum);
void OffBoat(player_struct *pl);
END_DUKE_NS END_DUKE_NS

View file

@ -123,13 +123,8 @@ void drawbackground(void);
void displayrooms(int32_t playerNum,int32_t smoothratio); void displayrooms(int32_t playerNum,int32_t smoothratio);
void G_HandleLocalKeys(void); void G_HandleLocalKeys(void);
void G_UpdatePlayerFromMenu(void); void G_UpdatePlayerFromMenu(void);
void FTA(int q, struct player_struct* p);
void P_SetGamePalette(player_struct* player, uint32_t palid, ESetPalFlags flags); void P_SetGamePalette(player_struct* player, uint32_t palid, ESetPalFlags flags);
void OnMotorcycle(player_struct *pPlayer, int spriteNum);
void OffMotorcycle(player_struct *pPlayer);
void OnBoat(player_struct *pPlayer, int spriteNum);
void OffBoat(player_struct *pPlayer);
void G_InitTimer(int32_t ticspersec); void G_InitTimer(int32_t ticspersec);

View file

@ -237,8 +237,7 @@ playerdata_t *const g_player = &g_player_s[1];
#else #else
extern playerdata_t *const g_player; extern playerdata_t *const g_player;
#endif #endif
G_EXTERN playerspawn_t g_playerSpawnPoints[MAXPLAYERS]; G_EXTERN player_orig po[MAXPLAYERS];
#define po g_playerSpawnPoints
#pragma pack(pop) #pragma pack(pop)
G_EXTERN int32_t restorepalette; G_EXTERN int32_t restorepalette;

View file

@ -58,24 +58,6 @@ enum gamemode_t {
MODE_SENDTOWHOM = 0x00000040, MODE_SENDTOWHOM = 0x00000040,
}; };
typedef struct {
union
{
vec3_t pos;
struct { int ox, oy, oz; };
};
union
{
int16_t oa;
int16_t ang;
};
union
{
int16_t sect;
int16_t os;
};
} playerspawn_t;
typedef struct { typedef struct {
ESyncBits bits; ESyncBits bits;
int16_t fvel, svel; int16_t fvel, svel;
@ -110,7 +92,6 @@ typedef struct
# define PWEAPON(Player, Weapon, Wmember) (aplWeapon ## Wmember [Weapon][Player]) # define PWEAPON(Player, Weapon, Wmember) (aplWeapon ## Wmember [Weapon][Player])
extern playerspawn_t g_playerSpawnPoints[MAXPLAYERS];
extern playerdata_t *const g_player; extern playerdata_t *const g_player;
extern int32_t mouseyaxismode; extern int32_t mouseyaxismode;

View file

@ -34,6 +34,11 @@ struct ActorInfo
int aimoffset; int aimoffset;
}; };
struct player_orig
{
int ox, oy, oz;
short oa, os;
};
struct player_struct struct player_struct
{ {

View file

@ -772,7 +772,7 @@ static const dataspec_t svgm_udnetw[] =
{ DS_STRING, (void *)svgm_udnetw_string, 0, 1 }, { DS_STRING, (void *)svgm_udnetw_string, 0, 1 },
{ 0, &ud.multimode, sizeof(ud.multimode), 1 }, { 0, &ud.multimode, sizeof(ud.multimode), 1 },
{ 0, &numplayersprites, sizeof(numplayersprites), 1 }, { 0, &numplayersprites, sizeof(numplayersprites), 1 },
{ 0, &g_playerSpawnPoints, sizeof(g_playerSpawnPoints), 1 }, { 0, &po, sizeof(po), 1 },
{ DS_NOCHK, &ud.volume_number, sizeof(ud.volume_number), 1 }, { DS_NOCHK, &ud.volume_number, sizeof(ud.volume_number), 1 },
{ DS_NOCHK, &ud.level_number, sizeof(ud.level_number), 1 }, { DS_NOCHK, &ud.level_number, sizeof(ud.level_number), 1 },