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
56733791
Commit
56733791
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
1c8ecdd4
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/Savefile.lua
+6
-0
6 additions, 0 deletions
game/engines/default/engine/Savefile.lua
with
6 additions
and
0 deletions
game/engines/default/engine/Savefile.lua
+
6
−
0
View file @
56733791
...
...
@@ -371,6 +371,7 @@ end
function
_M
:
loadReal
(
load
)
if
self
.
loaded
[
load
]
then
return
self
.
loaded
[
load
]
end
local
f
=
fs
.
open
(
self
.
load_dir
..
load
,
"r"
)
if
not
f
then
return
nil
end
local
lines
=
{}
while
true
do
...
...
@@ -402,6 +403,7 @@ function _M:loadWorld()
core
.
display
.
forceRedraw
()
local
loadedWorld
=
self
:
loadReal
(
"main"
)
if
not
loadedWorld
then
return
nil
,
"no savefile"
end
-- Delay loaded must run
for
i
,
o
in
ipairs
(
self
.
delayLoad
)
do
...
...
@@ -448,6 +450,7 @@ function _M:loadGame()
core
.
display
.
forceRedraw
()
local
loadedGame
=
self
:
loadReal
(
"main"
)
if
not
loadedGame
then
return
nil
,
"no savefile"
end
local
checker
=
self
:
md5Check
(
"game"
,
self
:
nameLoadGame
(),
loadedGame
)
...
...
@@ -509,6 +512,7 @@ function _M:loadZone(zone)
core
.
display
.
forceRedraw
()
local
loadedZone
=
self
:
loadReal
(
"main"
)
if
not
loadedZone
then
return
nil
,
"no savefile"
end
-- Delay loaded must run
for
i
,
o
in
ipairs
(
self
.
delayLoad
)
do
...
...
@@ -546,6 +550,7 @@ function _M:loadLevel(zone, level)
core
.
display
.
forceRedraw
()
local
loadedLevel
=
self
:
loadReal
(
"main"
)
if
not
loadedLevel
then
return
nil
,
"no savefile"
end
-- Delay loaded must run
for
i
,
o
in
ipairs
(
self
.
delayLoad
)
do
...
...
@@ -582,6 +587,7 @@ function _M:loadEntity(name)
core
.
display
.
forceRedraw
()
local
loadedEntity
=
self
:
loadReal
(
"main"
)
if
not
loadedEntity
then
return
nil
,
"no savefile"
end
-- Delay loaded must run
for
i
,
o
in
ipairs
(
self
.
delayLoad
)
do
...
...
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