X-Git-Url: https://deadsoftware.ru/gitweb?p=cavecraft.git;a=blobdiff_plain;f=src%2Fitems_logic.mpsrc;h=6c730f618f5345b68b5aceecc3373ae2a50cdf0f;hp=a0816c786b5cf4a569b16b157452430252312bb9;hb=1ca2eb4e93db3ede5fefff927b77abcfa3fcf325;hpb=13a872abec65a21544bfa928624c6bf3975fd50f diff --git a/src/items_logic.mpsrc b/src/items_logic.mpsrc index a0816c7..6c730f6 100644 --- a/src/items_logic.mpsrc +++ b/src/items_logic.mpsrc @@ -1253,8 +1253,9 @@ procedure updateBlock(x, y:integer); else if block=63 then begin - if (light>7) or (getMap(x, y+1)=0) then - setmap(0, x, y); + // В зимнем биоме снег не растапливается при сильном свете + if ((light > 7) and (getBiomMap(x) <> 2)) or (getMap(x, y + 1) = 0) then + setmap(0, x, y); end; else if block=74 then @@ -1364,9 +1365,9 @@ procedure updateBlock(x, y:integer); else if block=30 then begin - if (random(GENWOOD_RND)=random(GENWOOD_RND)) and (getMap(x, y+2)<>30) then - setMap(30, x, y-1); - if (getMap(x, y+1)<>7) or (getMap(x, y+1)<>30) then + if (random(GENWOOD_RND) = random(GENWOOD_RND)) and (getMap(x, y + 2) <> 30) then + setMap(30, x, y - 1); + if (getMap(x, y + 1) <> 7) and (getMap(x, y + 1) <> 30) then begin setMap(0, x, y); destroy_block_1(block, x, y);