moved alphaMaps from cache/ to setup/generated/
This commit is contained in:
parent
618217b970
commit
30b0b413e6
3 changed files with 4 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,6 +1,6 @@
|
|||
# cache
|
||||
/cache/template/*
|
||||
/cache/alphaMaps/*.png
|
||||
/setup/generated/alphaMaps/*.png
|
||||
|
||||
# generated files
|
||||
/static/js/profile_all.js
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ if (!CLI)
|
|||
}
|
||||
}
|
||||
|
||||
imagepng($tmp, 'cache/alphaMaps/' . $zoneId . '.png');
|
||||
imagepng($tmp, 'setup/generated/alphaMaps/' . $zoneId . '.png');
|
||||
|
||||
imagecolordeallocate($tmp, $cbg);
|
||||
imagecolordeallocate($tmp, $cfg);
|
||||
|
|
@ -374,7 +374,7 @@ if (!CLI)
|
|||
$dirError = true;
|
||||
|
||||
if ($modeMask & 0x04)
|
||||
if (!CLISetup::writeDir('cache/alphaMaps'))
|
||||
if (!CLISetup::writeDir('setup/generated/alphaMaps'))
|
||||
$dirError = true;
|
||||
|
||||
if ($dirError)
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ function spawns() // and waypoints
|
|||
$alphaMapCache = [];
|
||||
$alphaMapCheck = function ($areaId, array &$set) use (&$alphaMapCache)
|
||||
{
|
||||
$file = 'cache/alphaMaps/'.$areaId.'.png';
|
||||
$file = 'setup/generated/alphaMaps/'.$areaId.'.png';
|
||||
if (!file_exists($file)) // file does not exist (probably instanced area)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue