- strip the structure for local input off the fields not needed here.

Now it's basically the same as Dukes.
This commit is contained in:
Christoph Oelckers 2020-08-26 16:55:32 +02:00
parent c1b1182f90
commit 5a77aace2f
2 changed files with 12 additions and 3 deletions

View file

@ -64,7 +64,7 @@ int htimer = 0;
int EndLevel = false;
PlayerInput localInput;
LocalInput localInput;
////////

View file

@ -38,7 +38,7 @@ enum {
};
// 32 bytes
struct PlayerInput // TODO consider adjusting this for demo compatibility
struct PlayerInput
{
int xVel;
int yVel;
@ -49,6 +49,15 @@ struct PlayerInput // TODO consider adjusting this for demo compatibility
int8_t nItem;
};
struct LocalInput // TODO consider adjusting this for demo compatibility
{
int xVel;
int yVel;
fix16_t nAngle;
uint16_t buttons;
fix16_t horizon;
};
void InitInput();
void UpdateInputs();
@ -58,7 +67,7 @@ void ClearSpaceBar(short nPlayer);
int GetLocalInput();
extern PlayerInput sPlayerInput[];
extern PlayerInput localInput;
extern LocalInput localInput;
extern int nNetMoves;
extern int lLocalCodes;