mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
force XW_STATE to be 1 byte.
This commit is contained in:
parent
859283a8d0
commit
52510b0b10
1 changed files with 5 additions and 8 deletions
|
@ -20,14 +20,10 @@
|
|||
#ifndef _STATES_H_
|
||||
#define _STATES_H_
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
typedef enum {
|
||||
enum {
|
||||
XWSTATE_NONE,
|
||||
XWSTATE_BEGIN,
|
||||
__UNUSED1, /*XWSTATE_POOL_INITED,*/
|
||||
__UNUSED1, /* was XWSTATE_POOL_INITED */
|
||||
XWSTATE_NEED_SHOWSCORE, /* client-only */
|
||||
XWSTATE_WAITING_ALL_REG, /* includes waiting for dict from server */
|
||||
XWSTATE_RECEIVED_ALL_REG, /* includes waiting for dict from server */
|
||||
|
@ -37,8 +33,9 @@ typedef enum {
|
|||
XWSTATE_NEEDSEND_ENDGAME,
|
||||
XWSTATE_INTURN,
|
||||
XWSTATE_GAMEOVER
|
||||
|
||||
} XW_State;
|
||||
};
|
||||
typedef XP_U8 XW_State;
|
||||
#define XWSTATE_NBITS 4
|
||||
|
||||
/* Game starts out in BEGIN. If the server expects other players, it goes
|
||||
* into XWSTATE_WAITING_ALL_REG. Likewise goes any client waiting to hear
|
||||
|
|
Loading…
Add table
Reference in a new issue