Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
K'van
Tales of MajEyal
Commits
4c704be5
Commit
4c704be5
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
fixed
parent
fc2b7200
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/engines/default/engine/interface/ActorAI.lua
+0
-3
0 additions, 3 deletions
game/engines/default/engine/interface/ActorAI.lua
with
0 additions
and
3 deletions
game/engines/default/engine/interface/ActorAI.lua
+
0
−
3
View file @
4c704be5
...
...
@@ -123,7 +123,6 @@ function _M:doAI()
local
target_pos
=
self
.
ai_target
.
actor
and
self
.
fov
and
self
.
fov
.
actors
and
self
.
fov
.
actors
[
self
.
ai_target
.
actor
]
if
target_pos
then
local
tx
,
ty
=
self
:
aiSeeTargetPos
(
self
.
ai_target
.
actor
)
print
(
"======"
)
table
.
print
(
self
.
ai_state
.
target_last_seen
or
{})
print
(
"======"
)
self
.
ai_state
.
target_last_seen
=
table
.
merge
(
self
.
ai_state
.
target_last_seen
or
{},
{
x
=
tx
,
y
=
ty
,
turn
=
self
.
fov_last_turn
})
-- Merge to keep obfuscation data
end
...
...
@@ -146,8 +145,6 @@ end
function
_M
:
setTarget
(
target
,
last_seen
)
self
.
ai_target
.
actor
=
target
if
last_seen
then
print
(
"===============+SETTING LAST SEEN ON"
,
self
.
name
,
self
.
uid
,
" to last seen "
,
last_seen
)
util
.
show_traceback
()
self
.
ai_state
.
target_last_seen
=
last_seen
else
local
target_pos
=
target
and
self
.
fov
and
self
.
fov
.
actors
and
self
.
fov
.
actors
[
self
.
ai_target
.
actor
]
or
{
x
=
self
.
x
,
y
=
self
.
y
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment