X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=77f8d3289653c47ab389602b9d0d668ea8ea5679;hb=3fa87bc018874afae7bfca06c6d509411a441b09;hp=c6f6d7bd3841616b6494a9f9ebf36338551925de;hpb=b65a3d50513eaf5c2ef928c7345b2c2eac16c864;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index c6f6d7bd..77f8d328 100644 --- a/src/editor.c +++ b/src/editor.c @@ -7389,6 +7389,11 @@ static struct XY xy_directions[] = // functions // ---------------------------------------------------------------------------- +boolean isLevelEditorFastStart(void) +{ + return (level_editor_test_game && setup.editor.fast_game_start); +} + static int getMaxInfoTextLength(void) { return (SXSIZE / getFontWidth(INFOTEXT_FONT)); @@ -11446,6 +11451,20 @@ static void DrawEngineConfigColors(void) { int i; + if (!hasColorTemplate_BD()) + { + int font_nr = FONT_TEXT_1; + int font_height = getFontHeight(font_nr); + int yoffset_above = font_height + ED_GADGET_LINE_DISTANCE; + int xpos = ED_ENGINE_SETTINGS_X(0); + int ypos = ED_ENGINE_SETTINGS_Y(0); + + PrintInfoText("No level specific colors available.", font_nr, xpos, ypos - yoffset_above); + PrintInfoText("(Not supported by graphics set.)", font_nr, xpos, ypos); + + return; + } + if (bd_color_type_changed) { if (level.bd_color_type != GD_COLOR_TYPE_RGB && level.bd_color_type != GetCommonColorType_BD())