X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=005a1a2ac5d9be237d106de2f0eb08b360294871;hp=35ebce3fb9a87581894ec7f1efce4142337db162;hb=80aa0e4b2b060112407417a9d2896395023a21cc;hpb=ae1359da280d87576ff65d7cb5c407cd35983472 diff --git a/src/editor.c b/src/editor.c index 35ebce3f..005a1a2a 100644 --- a/src/editor.c +++ b/src/editor.c @@ -10314,7 +10314,10 @@ static void FloodFill(int from_x, int from_y, int fill_element) static int DrawLevelText(int sx, int sy, char letter, int mode) { static short delete_buffer[MAX_LEV_FIELDX]; - static int start_sx, start_sy; + static int start_sx; +#if 0 + static int start_sy; +#endif static int last_sx, last_sy; static boolean typing = FALSE; int letter_element = EL_CHAR_ASCII0 + letter; @@ -10356,8 +10359,12 @@ static int DrawLevelText(int sx, int sy, char letter, int mode) DrawLevelText(0, 0, 0, TEXT_END); typing = TRUE; - start_sx = last_sx = sx; - start_sy = last_sy = sy; + start_sx = sx; +#if 0 + start_sy = sy; +#endif + last_sx = sx; + last_sy = sy; DrawLevelText(sx, sy, 0, TEXT_SETCURSOR); break;