mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10: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 {
|
||||
|
||||
#if CAP_BITFIELD
|
||||
// main fields
|
||||
eLand land : 8;
|
||||
eWall wall : 8;
|
||||
@ -87,6 +88,18 @@ struct gcell {
|
||||
hitpoints : 4; // hitpoints left (for Palace Guards, also reused as cpid for mirrors)
|
||||
|
||||
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:
|
||||
// heat in Icy/Cocytus;
|
||||
|
Loading…
Reference in New Issue
Block a user