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:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,6 @@
|
|||||||
# cache
|
# cache
|
||||||
/cache/template/*
|
/cache/template/*
|
||||||
/cache/alphaMaps/*.png
|
/setup/generated/alphaMaps/*.png
|
||||||
|
|
||||||
# generated files
|
# generated files
|
||||||
/static/js/profile_all.js
|
/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, $cbg);
|
||||||
imagecolordeallocate($tmp, $cfg);
|
imagecolordeallocate($tmp, $cfg);
|
||||||
@@ -374,7 +374,7 @@ if (!CLI)
|
|||||||
$dirError = true;
|
$dirError = true;
|
||||||
|
|
||||||
if ($modeMask & 0x04)
|
if ($modeMask & 0x04)
|
||||||
if (!CLISetup::writeDir('cache/alphaMaps'))
|
if (!CLISetup::writeDir('setup/generated/alphaMaps'))
|
||||||
$dirError = true;
|
$dirError = true;
|
||||||
|
|
||||||
if ($dirError)
|
if ($dirError)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function spawns() // and waypoints
|
|||||||
$alphaMapCache = [];
|
$alphaMapCache = [];
|
||||||
$alphaMapCheck = function ($areaId, array &$set) use (&$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)
|
if (!file_exists($file)) // file does not exist (probably instanced area)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user