Commit cabe10b3 authored by Harmonikater's avatar Harmonikater
Browse files

Fallback terrain import from root level folder

parent 72bf51ff
......@@ -131,10 +131,14 @@ fn bf2ImportHeightmap fname:undefined s:10.0 seaLevel:undefined=
local index = findString tRawFile levelName
if index == undefined then
(
format "ERROR! heightmap .raw not found!\n"
return false
)
tRawFile = substring tRawFile (index + levelName.count) -1
tRawFile = (pathConfig.stripPathToLeaf tRawFile)
--format "ERROR! heightmap .raw not found!\n"
--return false
)
else
(
tRawFile = substring tRawFile (index + levelName.count) -1
)
rawPath = pathConfig.appendPath rawPath tRawFile
format "tScale.y: %\n" tScale.y
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment