mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
CAP_BITFIELD can be disabled -- this helps with Emscripten
This commit is contained in:
parent
1391a7fe4d
commit
90d477d3dc
13
hyper.h
13
hyper.h
@ -65,6 +65,7 @@ extern int cellcount, heptacount;
|
|||||||
|
|
||||||
struct gcell {
|
struct gcell {
|
||||||
|
|
||||||
|
#if CAP_BITFIELD
|
||||||
// main fields
|
// main fields
|
||||||
eLand land : 8;
|
eLand land : 8;
|
||||||
eWall wall : 8;
|
eWall wall : 8;
|
||||||
@ -87,6 +88,18 @@ struct gcell {
|
|||||||
hitpoints : 4; // hitpoints left (for Palace Guards, also reused as cpid for mirrors)
|
hitpoints : 4; // hitpoints left (for Palace Guards, also reused as cpid for mirrors)
|
||||||
|
|
||||||
unsigned landflags : 8; // extra flags for land
|
unsigned landflags : 8; // extra flags for land
|
||||||
|
#else
|
||||||
|
eLand land;
|
||||||
|
eWall wall;
|
||||||
|
eMonster monst;
|
||||||
|
eItem item;
|
||||||
|
eLand barleft, barright;
|
||||||
|
bool ligon;
|
||||||
|
unsigned char pathdist, cpdist, mpdist;
|
||||||
|
|
||||||
|
unsigned char mondir, bardir, stuntime, hitpoints;
|
||||||
|
unsigned char landflags;
|
||||||
|
#endif
|
||||||
|
|
||||||
// 'landparam' is used for:
|
// 'landparam' is used for:
|
||||||
// heat in Icy/Cocytus;
|
// heat in Icy/Cocytus;
|
||||||
|
Loading…
Reference in New Issue
Block a user