Skip to content

Commit ba54af6

Browse files
committed
Remove testing of full inventory
1 parent e26d036 commit ba54af6

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

PUDR/PREDMETY.PAS

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ var i: Byte;
2626
PutImage(41 + 40*i - 220*Ord(i>5), 128, things[thing_id].image^, XORPut) end;
2727

2828

29-
function inventory_full: Boolean;
30-
var i: Byte;
31-
32-
begin inventory_full := True;
33-
34-
for i := 0 to 10 do
35-
if inventory[i] = -1 then begin
36-
inventory_full := False;
37-
Break end end;
38-
39-
4029
procedure things_in_room;
4130
var thing_id: Byte;
4231

PUDR/PRIKAZY.PAS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ var i, inv_slot: Byte;
100100
{things in room}
101101
if (things[i].where = room) then
102102
if ((action <> 2) or things[i].portable) {only portable things can be taken}
103-
and ((action <> 2) or not inventory_full) {& can be taken if inventory not full}
104103
and (action <> 3) {& only owned things can be used}
105104
and ((action <> 4) or (i in openables)) {& only some things make sense to open}
106105
then

0 commit comments

Comments
 (0)