if (scrollbar_info[i].type == GD_TYPE_SCROLLBAR_HORIZONTAL)
{
- items_max = lev_fieldx + 2;
+ items_max = MAX(lev_fieldx + 2, ED_FIELDX);
items_visible = ED_FIELDX;
item_position = 0;
}
else
{
- items_max = lev_fieldy + 2;
+ items_max = MAX(lev_fieldy + 2, ED_FIELDY);
items_visible = ED_FIELDY;
item_position = 0;
}
if (id == ED_CTRL_ID_SCROLL_HORIZONTAL)
{
- items_max = lev_fieldx + 2;
+ items_max = MAX(lev_fieldx + 2, ED_FIELDX);
items_visible = ED_FIELDX;
item_position = level_xpos + 1;
}
else
{
- items_max = lev_fieldy + 2;
+ items_max = MAX(lev_fieldy + 2, ED_FIELDY);
items_visible = ED_FIELDY;
item_position = level_ypos + 1;
}
button == 3 ? new_element3 : 0);
-
+#if 0
if (button_release_event)
button = 0;
-
+#endif
if (!draw_level && drawing_function != ED_CTRL_ID_SINGLE_ITEMS)
break;
if (draw_with_brush)
- CopyBrushToLevel(sx, sy, button);
+ {
+ if (!button_release_event)
+ CopyBrushToLevel(sx, sy, button);
+ }
else if (new_element != Feld[lx][ly])
{
if (new_element == EL_SPIELFIGUR)