From 516fafe7ee088155d156e0f36f165a0d557d2bde Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 4 Jul 2003 10:50:56 +0200 Subject: [PATCH 1/1] rnd-20030704-1-src --- src/conftime.h | 2 +- src/editor.c | 10 +++++++--- src/files.c | 10 +++++++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/conftime.h b/src/conftime.h index ec4b799c..9eaef5e6 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2003-07-03 21:19]" +#define COMPILE_DATE_STRING "[2003-07-04 09:17]" diff --git a/src/editor.c b/src/editor.c index 4696db8b..969aad79 100644 --- a/src/editor.c +++ b/src/editor.c @@ -2384,10 +2384,10 @@ static char *getElementInfoText(int element) if (element < NUM_FILE_ELEMENTS) { - if (element_info[element].custom_description != NULL) - info_text = element_info[element].custom_description; - else if (strlen(element_info[element].description) > 0) + if (strlen(element_info[element].description) > 0) info_text = element_info[element].description; + else if (element_info[element].custom_description != NULL) + info_text = element_info[element].custom_description; else if (element_info[element].editor_description != NULL) info_text = element_info[element].editor_description; } @@ -5926,7 +5926,11 @@ static void HandleTextInputGadgets(struct GadgetInfo *gi) strcpy(textinput_info[type_id].value, gi->text.value); if (type_id == ED_TEXTINPUT_ID_ELEMENT_NAME) + { CopyCustomElementPropertiesToGame(properties_element); + + ModifyEditorElementList(); /* update changed button info text */ + } } static void HandleSelectboxGadgets(struct GadgetInfo *gi) diff --git a/src/files.c b/src/files.c index 787013ba..1396b60e 100644 --- a/src/files.c +++ b/src/files.c @@ -105,10 +105,14 @@ static void setLevelInfoToDefaults() { int element = EL_CUSTOM_START + i; - for(j=0; j