X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibgame%2Fsystem.h;h=bab4957e9f861437e39851d7b8fb945dbe7bf8b5;hb=7270af24b41bc33fbb89a97227a7696e343eacbb;hp=5249adfcb599df787c497ba9aa6ba153949eedfb;hpb=5f9b6d3b52c7f8dc10c01782d466a1e8f5ca5f26;p=rocksndiamonds.git diff --git a/src/libgame/system.h b/src/libgame/system.h index 5249adfc..bab4957e 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -753,6 +753,16 @@ &artwork.mus_first : \ NULL) +#define TREE_FIRST_NODE(t) ((t) == TREE_TYPE_LEVEL_DIR ? \ + leveldir_first : \ + (t) == TREE_TYPE_GRAPHICS_DIR ? \ + artwork.gfx_first : \ + (t) == TREE_TYPE_SOUNDS_DIR ? \ + artwork.snd_first : \ + (t) == TREE_TYPE_MUSIC_DIR ? \ + artwork.mus_first : \ + NULL) + // values for artwork handling #define LEVELDIR_ARTWORK_SET_PTR(leveldir, type) \ ((type) == ARTWORK_TYPE_GRAPHICS ? \