Skip to content

Commit

Permalink
src: Replace all tabs with spaces
Browse files Browse the repository at this point in the history
The original source code uses a mix of tab/space.

Although I prefer tabs, it's easier to convert everything
to spaces ...

Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed Jan 14, 2021
1 parent 67c00f7 commit 864cd8d
Show file tree
Hide file tree
Showing 119 changed files with 21,557 additions and 21,557 deletions.
952 changes: 476 additions & 476 deletions src/am_map.c

Large diffs are not rendered by default.

594 changes: 297 additions & 297 deletions src/d_englsh.h

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions src/d_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ typedef enum
// Event structure.
typedef struct
{
evtype_t type;
int data1; // keys / mouse/joystick buttons
int data2; // mouse/joystick x move
int data3; // mouse/joystick y move
evtype_t type;
int data1; // keys / mouse/joystick buttons
int data2; // mouse/joystick x move
int data3; // mouse/joystick y move
} event_t;


Expand All @@ -73,30 +73,30 @@ typedef enum
typedef enum
{
// Press "Fire".
BT_ATTACK = 1,
BT_ATTACK = 1,
// Use button, to open doors, activate switches.
BT_USE = 2,
BT_USE = 2,

// Flag: game events, not really buttons.
BT_SPECIAL = 128,
BT_SPECIALMASK = 3,
BT_SPECIAL = 128,
BT_SPECIALMASK = 3,

// Flag, weapon change pending.
// If true, the next 3 bits hold weapon num.
BT_CHANGE = 4,
BT_CHANGE = 4,
// The 3bit weapon mask and shift, convenience.
BT_WEAPONMASK = (8+16+32),
BT_WEAPONSHIFT = 3,
BT_WEAPONMASK = (8+16+32),
BT_WEAPONSHIFT = 3,

// Pause the game.
BTS_PAUSE = 1,
BTS_PAUSE = 1,
// Save the game at each console.
BTS_SAVEGAME = 2,
BTS_SAVEGAME = 2,

// Savegame slot numbers
// occupy the second byte of buttons.
BTS_SAVEMASK = (4+8+16),
BTS_SAVESHIFT = 2,
BTS_SAVEMASK = (4+8+16),
BTS_SAVESHIFT = 2,

} buttoncode_t;

Expand All @@ -106,11 +106,11 @@ typedef enum
//
// GLOBAL VARIABLES
//
#define MAXEVENTS 64
#define MAXEVENTS 64

extern event_t events[MAXEVENTS];
extern event_t events[MAXEVENTS];
extern int eventhead;
extern int eventtail;
extern int eventtail;

extern gameaction_t gameaction;

Expand Down
Loading

0 comments on commit 864cd8d

Please sign in to comment.