projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20020609-1-src
[rocksndiamonds.git]
/
src
/
editor.c
diff --git
a/src/editor.c
b/src/editor.c
index 8e2258fc00cb4cf3810c191c9b76c3881172c2bf..ac9a5d847b736ba871dbbdd565a38690243aa117 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-1273,8
+1273,8
@@
static char *getElementInfoText(int element)
{
char *info_text = "unknown";
{
char *info_text = "unknown";
- if (element <
num_element_info
)
- info_text = element_info[element];
+ if (element <
NUM_LEVEL_ELEMENTS
)
+ info_text = element_info[element]
.editor_description
;
else
Error(ERR_WARN, "no element description for element %d", element);
else
Error(ERR_WARN, "no element description for element %d", element);
@@
-3920,6
+3920,9
@@
static void HandleControlButtons(struct GadgetInfo *gi)
Request("No Level without Gregor Mc Duffin please !", REQ_CONFIRM);
else
{
Request("No Level without Gregor Mc Duffin please !", REQ_CONFIRM);
else
{
+ if (LevelChanged())
+ level.game_version = GAME_VERSION_ACTUAL;
+
for(x=0; x<lev_fieldx; x++)
for(y=0; y<lev_fieldy; y++)
FieldBackup[x][y] = Ur[x][y];
for(x=0; x<lev_fieldx; x++)
for(y=0; y<lev_fieldy; y++)
FieldBackup[x][y] = Ur[x][y];