# HG changeset patch # User Wuzzy # Date 1554139633 -7200 # Node ID e57c8ace7d96b4c4ee6f2be60e4f629b2c5888a6 # Parent c760a2939b9c29565f92906ba2aa8cc38c2bc967 Nemo is right, it's better to set hedgehog pos in uGearsList diff -r c760a2939b9c -r e57c8ace7d96 hedgewars/uGearsList.pas --- a/hedgewars/uGearsList.pas Mon Apr 01 19:16:55 2019 +0200 +++ b/hedgewars/uGearsList.pas Mon Apr 01 19:27:13 2019 +0200 @@ -312,6 +312,7 @@ gear^.Angle:= cMaxAngle div 2; gear^.Density:= _3; gear^.Z:= cHHZ; + gear^.Pos:= GetRandom(19); if (GameFlags and gfAISurvival) <> 0 then if gear^.Hedgehog^.BotLevel > 0 then gear^.Hedgehog^.Effects[heResurrectable] := 1; diff -r c760a2939b9c -r e57c8ace7d96 hedgewars/uTeams.pas --- a/hedgewars/uTeams.pas Mon Apr 01 19:16:55 2019 +0200 +++ b/hedgewars/uTeams.pas Mon Apr 01 19:27:13 2019 +0200 @@ -736,7 +736,6 @@ Gear:= AddGear(0, 0, gtHedgehog, 0, _0, _0, 0); SplitBySpace(s, id); Gear^.Health:= StrToInt(s); - Gear^.Pos:= GetRandom(19); if checkFails((Gear^.Health > 0) and (Gear^.Health <= cMaxHogHealth), 'Invalid hedgehog health (must be between 1 and '+IntToStr(cMaxHogHealth)+')', true) then exit; if (GameFlags and gfSharedAmmo) <> 0 then CurrentHedgehog^.AmmoStore:= Clan^.ClanIndex