Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
devapromix committed Sep 27, 2017
1 parent d3692ed commit d02a584
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ life=200,0,0
food=150,100,0
poison=100,250,100
unidentified=255,80,80
rare=90,170,90

[Colors]
default=Yellow
Expand Down
4 changes: 2 additions & 2 deletions uMob.pas
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ procedure TMob.AddNPC(AX, AY: Byte; AZ: TMapEnum; ANPCID: Byte);

function ChMapTile(AMobID, AX, AY: Byte; AZ: TMapEnum): Boolean;
begin
Result := (Map.GetTileEnum(AX, AY, AZ) in SpawnTiles) and (Player.X <> AX) and
(Player.Y <> AY) and Mobs.GetFreeTile(AX, AY) and
Result := (Map.GetTileEnum(AX, AY, AZ) in SpawnTiles)
and (Player.X <> AX) and (Player.Y <> AY) and Mobs.GetFreeTile(AX, AY) and
(AZ in MobBase[TMobEnum(AMobID)].Maps);
end;

Expand Down
1 change: 0 additions & 1 deletion uPlayer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,6 @@ procedure TPlayer.SetAmountScene(IsDrop: Boolean; Index, Amount: Integer);

procedure TPlayer.Spawn;
begin
Self.Clear;
X := Game.Spawn.X;
Y := Game.Spawn.Y;
Map.Current := deDarkWood;
Expand Down

0 comments on commit d02a584

Please sign in to comment.