X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=f15d401660cc29c0a14d099c1895467167c47c44;hp=15eab774ed38ce2fa34dea64d6f52e5a092dba6b;hb=cc17a49a1a63c1df0e55a5afd510698e21b71dfe;hpb=23c658debac513b4ab7e2d1c0f5a8cc011f6927b diff --git a/src/editor.c b/src/editor.c index 15eab774..f15d4016 100644 --- a/src/editor.c +++ b/src/editor.c @@ -414,7 +414,7 @@ static struct int width, height; int type; int gadget_id; - char *text; + char *infotext; } scrollbar_info[ED_NUM_SCROLLBARS] = { { @@ -447,7 +447,6 @@ static void HandleDrawingAreaInfo(struct GadgetInfo *); static void HandleTextInputGadgets(struct GadgetInfo *); static struct GadgetInfo *level_editor_gadget[ED_NUM_GADGETS]; -static boolean level_editor_gadgets_created = FALSE; static int drawing_function = ED_CTRL_ID_SINGLE_ITEMS; static int last_drawing_function = ED_CTRL_ID_SINGLE_ITEMS; @@ -875,14 +874,6 @@ static void ScrollMiniLevel(int from_x, int from_y, int scroll) BackToFront(); } -void InitLevelEditorGadgets() -{ - int i; - - for (i=0; itext.value, level.name); + strcpy(level_editor_gadget[ED_CTRL_ID_LEVEL_NAME]->text.value, level.name); MapControlButtons();