blades-engine don't make blackness sprites

This commit is contained in:
2022-06-12 18:13:58 +00:00
parent 7981a25790
commit 8b22b3a5c4
2 changed files with 2 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ class ScenData {
public function floorSprite(floorId:Int) {
if (!(floorId >= 0 && floorId < 256))
throw 'floor $floorId is out of range';
if (!floorData.exists(floorId)) {
if (!floorData.exists(floorId) || floorId == 255) {
return null;
}
@@ -76,7 +76,7 @@ class ScenData {
public function terrainSprite(terrainId:Int, wallSheet1:Int, wallSheet2:Int) {
if (!(terrainId >= 0 && terrainId < 512))
throw 'terrain $terrainId is out of range';
if (!terrainData.exists(terrainId)) {
if (!terrainData.exists(terrainId) || terrainId == 1) {
return null;
}
var td = terrainData[terrainId];