moved alphaMaps from cache/ to setup/generated/

This commit is contained in:
Sarjuuk
2015-06-06 09:34:33 +02:00
parent 618217b970
commit 30b0b413e6
3 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,6 @@
# cache
/cache/template/*
/cache/alphaMaps/*.png
/setup/generated/alphaMaps/*.png
# generated files
/static/js/profile_all.js

View File

@@ -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)

View File

@@ -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;