X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=newdungeon.py;h=60625997f907ddc4976fd39b1ce406f5d546637f;hb=6152e35afd8b5f71977b5961b9a8ec788ae8942e;hp=315b7b023b75fc1a4184719d1c7dbcc44d12dab5;hpb=db68e0097ed1bf1ebcfc7f3e9a0bdf295c537f00;p=open-adventure.git diff --git a/newdungeon.py b/newdungeon.py index 315b7b0..6062599 100755 --- a/newdungeon.py +++ b/newdungeon.py @@ -138,7 +138,7 @@ typedef struct {{ }} action_t; typedef struct {{ - const long opcode; + const long motion; const long dest; const bool stop; }} travelop_t; @@ -150,11 +150,8 @@ typedef struct {{ */ #define T_DESTINATION(entry) MOD((entry).dest, 1000) #define T_NODWARVES(entry) ((entry).dest / 1000 == 100) -#define T_MOTION(entry) MOD((entry).opcode, 1000) -#define T_TERMINATE(entry) (T_MOTION(entry) == 1) -#define T_STOP(entry) ((entry).stop) #define T_HIGH(entry) ((entry).dest) -#define T_LOW(entry) ((entry).opcode) +#define T_TERMINATE(entry) ((entry).motion == 1) #define L_SPEAK(loc) ((loc) - 500) extern const location_t locations[]; @@ -644,7 +641,7 @@ def buildtravel(locs, objs, voc): def get_travel(travel): template = """ {{ - .opcode = {}, + .motion = {}, .dest = {}, .stop = {}, }},