Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
tome
Tales of MajEyal
Commits
dc93264a
There was a problem fetching the pipeline summary.
Commit
dc93264a
authored
8 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
disabled going back to previous location on reentry
parent
c8b840f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/class/Game.lua
+9
-9
9 additions, 9 deletions
game/modules/tome/class/Game.lua
with
9 additions
and
9 deletions
game/modules/tome/class/Game.lua
+
9
−
9
View file @
dc93264a
...
...
@@ -1114,15 +1114,15 @@ function _M:changeLevelReal(lev, zone, params)
if
#
list
>
0
then
x
,
y
=
unpack
(
rng
.
table
(
list
))
end
end
if
self
.
level
.
exited
then
-- use the last location, if defined
local
turn
=
0
if
self
.
level
.
exited
.
down
then
x
,
y
,
turn
=
self
.
level
.
exited
.
down
.
x
,
self
.
level
.
exited
.
down
.
y
,
self
.
level
.
exited
.
down
.
turn
or
0
end
if
self
.
level
.
exited
.
up
and
(
self
.
level
.
exited
.
up
.
turn
or
0
)
>
turn
then
x
,
y
=
self
.
level
.
exited
.
up
.
x
,
self
.
level
.
exited
.
up
.
y
end
end
--
if self.level.exited then -- use the last location, if defined
--
local turn = 0
--
if self.level.exited.down then
--
x, y, turn = self.level.exited.down.x, self.level.exited.down.y, self.level.exited.down.turn or 0
--
end
--
if self.level.exited.up and (self.level.exited.up.turn or 0) > turn then
--
x, y = self.level.exited.up.x, self.level.exited.up.y
--
end
--
end
if
not
x
then
-- Default to stairs
if
lev
>
old_lev
and
not
params
.
force_down
and
self
.
level
.
default_up
then
x
,
y
=
self
.
level
.
default_up
.
x
,
self
.
level
.
default_up
.
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