X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=7b066ee9741e44497b7fac6f37b3e4f959f30717;hb=234748b5eb0bc4fe29a36fd25a1d25658f53858a;hp=6dc35c7c3270b3ecc6102684314bed2c30d92c1c;hpb=ab939d25272479b99688fb27fd9c09dbbe05b2bb;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 6dc35c7c..7b066ee9 100644 --- a/src/editor.c +++ b/src/editor.c @@ -754,7 +754,7 @@ int editor_element[] = EL_CHAR('S'), EL_CHAR('H'), - EL_PLAYER, + EL_PLAYER1, EL_EMPTY, EL_SAND, EL_STEELWALL, @@ -799,7 +799,7 @@ int editor_element[] = EL_PLAYER3, EL_PLAYER4, - EL_PLAYER, + EL_PLAYER1, EL_EMPTY, EL_SAND, EL_ROCK, @@ -1490,7 +1490,7 @@ static void CreateControlButtons() gd_x2 = DOOR_GFX_PAGEX6 + ED_ELEMENTLIST_XPOS; gd_y = DOOR_GFX_PAGEY1 + ED_ELEMENTLIST_YPOS; - getMiniGraphicSource(el2gfx(editor_element[i]), + getMiniGraphicSource(el2img(editor_element[i]), &deco_bitmap, &deco_x, &deco_y); deco_xpos = (ED_ELEMENTLIST_XSIZE - MINI_TILEX) / 2; deco_ypos = (ED_ELEMENTLIST_YSIZE - MINI_TILEY) / 2; @@ -2101,8 +2101,7 @@ static boolean LevelContainsPlayer() for(y=0; y= 0 && x - level_xpos < ed_fieldx && @@ -3475,11 +3474,11 @@ static void HandleDrawingAreas(struct GadgetInfo *gi) DrawMiniGraphicExt(drawto, gi->x + sx * MINI_TILEX, gi->y + sy * MINI_TILEY, - el2gfx(new_element)); + el2img(new_element)); DrawMiniGraphicExt(window, gi->x + sx * MINI_TILEX, gi->y + sy * MINI_TILEY, - el2gfx(new_element)); + el2img(new_element)); if (id == GADGET_ID_AMOEBA_CONTENT) level.amoeba_content = new_element; @@ -3801,7 +3800,7 @@ static void HandleControlButtons(struct GadgetInfo *gi) int element = editor_element[element_shift + i]; UnmapGadget(gi); - getMiniGraphicSource(el2gfx(element), &gd->bitmap, &gd->x, &gd->y); + getMiniGraphicSource(el2img(element), &gd->bitmap, &gd->x, &gd->y); ModifyGadget(gi, GDI_INFO_TEXT, getElementInfoText(element), GDI_END); MapGadget(gi); }