Skip to content

Commit 40a5f97

Browse files
committed
more code cleanup
1 parent 9723fc0 commit 40a5f97

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

Data/Base.rte/AI/NativeDropShipAI.lua

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ function NativeDropShipAI:Update(Owner)
121121
self.DeliveryState = ACraft.FALL;
122122
end
123123
end
124-
125-
-- print(Owner.AIMode);
126124

127125
if self.PlayerInterferedTimer:IsPastSimTimeLimit() then
128126
self.StuckTimer:Reset();
@@ -168,27 +166,9 @@ function NativeDropShipAI:Update(Owner)
168166
if Owner.IsWaitingOnNewMovePath then
169167
self.reachedWaypoint = false;
170168
self.Waypoint = nil;
171-
-- print("wasnotready");
172169
return;
173170
end
174-
175-
-- print("ourpos")
176-
-- print(Owner.Pos)
177-
-- print("")
178-
-- print("desiredpos")
179-
-- print(self.Waypoint)
180-
-- print("")
181-
-- if Owner:GetWaypointListSize() > 0 then
182-
-- print("nextWaypointPos")
183-
-- for Wpt in Owner.SceneWaypoints do
184-
-- print(Wpt)
185-
-- end
186-
-- else
187-
-- print("nonewwaypoint")
188-
-- end
189-
-- print("")
190-
-- print(self.reachedWaypoint)
191-
171+
192172
if self.Waypoint == nil or self.reachedWaypoint then
193173
self.reachedWaypoint = false;
194174
for Wpt in Owner.MovePath do
@@ -198,11 +178,9 @@ function NativeDropShipAI:Update(Owner)
198178
local Dist = SceneMan:ShortestDistance(Owner.Pos, self.Waypoint, false);
199179
if Dist.Magnitude < 20 then
200180
if Owner:GetWaypointListSize() == 0 then
201-
--print("sentry")
202181
Owner.AIMode = Actor.AIMODE_SENTRY;
203182
self.Waypoint = Owner.Pos;
204183
else
205-
--print("reached, cleared")
206184
Owner:ClearMovePath();
207185
Owner:UpdateMovePath();
208186
self.reachedWaypoint = true;

Data/Base.rte/AI/RocketAI.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ function ThreadedUpdateAI(self)
195195
if self.DeliveryState ~= ACraft.UNLOAD then
196196
dist = SceneMan:ShortestDistance(self.Pos+self.Vel, self.LZpos, false);
197197
change = self.YposPID:Update(dist.Y, 0);
198-
--print("NEW")
199-
--print(dist)
200-
--print(change)
201198
if math.abs(self.RotAngle) < 0.9 then
202199
if self.AIMode == Actor.AIMODE_GOTO then
203200
if change < 0 then

0 commit comments

Comments
 (0)