mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
moved alphaMaps from cache/ to setup/generated/
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user