forked from len0rd/rockbox
Doom plugin: In anticipation of moving to the EABI toolchain, because of its assumptions about enums being sized as ints, convert enum typdefs to int or unsigned depending upon whether they have negative values in the enumeration. This should effectively preserve the manner in which it is compiled under the old toolchain and avoids having to closely inspect and possibly change many places in the code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26368 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6980c1e998
commit
9c6e217f29
25 changed files with 260 additions and 191 deletions
|
|
@ -58,7 +58,7 @@
|
|||
//
|
||||
// Player states.
|
||||
//
|
||||
typedef enum
|
||||
enum
|
||||
{
|
||||
// Playing or camping.
|
||||
PST_LIVE,
|
||||
|
|
@ -67,13 +67,14 @@ typedef enum
|
|||
// Ready to restart/respawn???
|
||||
PST_REBORN
|
||||
|
||||
} playerstate_t;
|
||||
};
|
||||
typedef unsigned playerstate_t;
|
||||
|
||||
|
||||
//
|
||||
// Player internal flags, for cheats and debug.
|
||||
//
|
||||
typedef enum
|
||||
enum
|
||||
{
|
||||
// No clipping, walk through barriers.
|
||||
CF_NOCLIP = 1,
|
||||
|
|
@ -82,7 +83,8 @@ typedef enum
|
|||
// Not really a cheat, just a debug aid.
|
||||
CF_NOMOMENTUM = 4
|
||||
|
||||
} cheat_t;
|
||||
};
|
||||
typedef unsigned cheat_t;
|
||||
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue