X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_items.pas;h=9693ad07f31270f0d4e691a33ebcd66de8cbe04d;hp=ae047f82b8afcc86bfa283e05012af0964c9b3a5;hb=0b34f8195a84d9aecc7cd9f17fd1902b7723e3b8;hpb=c3750b33c7c32ef74637ae0f6be98974af391ab9 diff --git a/src/game/g_items.pas b/src/game/g_items.pas index ae047f8..9693ad0 100644 --- a/src/game/g_items.pas +++ b/src/game/g_items.pas @@ -509,7 +509,6 @@ var Anim: TAnimation; m: Word; r, nxt: Boolean; - actualRespawnable: Boolean; begin if (ggItems = nil) then exit; @@ -577,9 +576,10 @@ begin // Íàäî óáðàòü ñ êàðòû, åñëè ýòî íå êëþ÷, êîòîðûì íóæíî ïîäåëèòüñÿ ñ äðóãèì èãðîêîì if r then begin - actualRespawnable := Respawnable - and ((ITEM_RESPAWNTIME > 0) and LongBool(gGameSettings.Options and GAME_OPTION_RESPAWNITEMS)); - if not actualRespawnable then g_Items_Remove(i) else g_Items_Pick(i); + if not (Respawnable and (ITEM_RESPAWNTIME > 0)) then + g_Items_Remove(i) + else + g_Items_Pick(i); if g_Game_IsNet then MH_SEND_ItemDestroy(False, i); nxt := True; break;