X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_items.pas;h=07c4df2b1d8e929832c6ac67b97f548de27b3d4d;hp=8efa5ca9fb4626cd1907e805d640db44e5153033;hb=6f5375e6179294fde838bcf61f0dafeb4e018ee7;hpb=4774edd4a8efe6f10b0205f05e386d5629f69294 diff --git a/src/game/g_items.pas b/src/game/g_items.pas index 8efa5ca..07c4df2 100644 --- a/src/game/g_items.pas +++ b/src/game/g_items.pas @@ -453,8 +453,10 @@ begin it.slotIsUsed := true; it.ItemType := ItemType; - it.Respawnable := Respawnable; - if g_Game_IsServer and (ITEM_RESPAWNTIME = 0) then it.Respawnable := False; + if g_Game_IsServer and ((ITEM_RESPAWNTIME = 0) or not LongBool(gGameSettings.Options and GAME_OPTION_RESPAWNITEMS)) then + it.Respawnable := False + else + it.Respawnable := Respawnable; it.InitX := X; it.InitY := Y; it.RespawnTime := 0;