X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=e766a52de4a9b4311401fc355bbcd9298ea03f98;hb=6ed4958820f8f97174ca47594dcc6f00ee31b2cb;hp=62109f0009e33f5e4ff5d755d5dc8c8a320b9b24;hpb=3fb68b18f28034e492534fb3b5579fd1da888292;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 62109f00..e766a52d 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