X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=9b57d1b04c4477872429c6bc652ac7decb039e44;hb=41680565bf2af491be63ee8440788c4ff8b616db;hp=46f27d80a291445d1526f05172838d991cc3fdb1;hpb=6435b79b71c4033de78ab3e611ee63f6a2147874;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 46f27d80..9b57d1b0 100644 --- a/src/init.c +++ b/src/init.c @@ -24,7 +24,6 @@ #include "network.h" #include "netserv.h" #include "cartoons.h" -#include "config.h" #include "conf_e2g.c" /* include auto-generated data structure definitions */ #include "conf_esg.c" /* include auto-generated data structure definitions */ @@ -424,6 +423,9 @@ void InitElementGraphicInfo() int direction = element_to_graphic[i].direction; int graphic = element_to_graphic[i].graphic; + if (graphic_info[graphic].bitmap == NULL) + continue; + if (action < 0) action = ACTION_DEFAULT; @@ -442,6 +444,9 @@ void InitElementGraphicInfo() int special = property_mapping[i].ext3_index; int graphic = property_mapping[i].artwork_index; + if (graphic_info[graphic].bitmap == NULL) + continue; + if (element >= MAX_NUM_ELEMENTS || special != -1) continue; @@ -474,13 +479,18 @@ void InitElementGraphicInfo() for (act=0; act