X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=38dd52b693e57de59e6d1b043d2b88c4431674d9;hb=1ec7a01403d374273c3090fe93ca2e59869802f0;hp=18a5a2c16199f38dfe9521f9419fe330fb5ccddc;hpb=f1dd811c3716f706ab832dadf8ef52cf4bfd705d;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 18a5a2c1..38dd52b6 100644 --- a/src/init.c +++ b/src/init.c @@ -4734,6 +4734,12 @@ void Execute_Command(char *command) Error(ERR_EXIT, "image target directory '%s' not found or not writable", global.create_images_dir); } + else if (strPrefix(command, "create CE image ")) + { + CreateCustomElementImages(&command[16]); + + exit(0); + } #if DEBUG #if defined(TARGET_SDL2) @@ -5014,6 +5020,9 @@ void InitGfxBuffers() InitGfxScrollbufferInfo(FXSIZE, FYSIZE); InitGfxClipRegion(FALSE, -1, -1, -1, -1); + /* required if door size definitions have changed */ + InitGraphicCompatibilityInfo_Doors(); + InitGfxBuffers_EM(); InitGfxBuffers_SP(); }