minor bug fixes

develop
zilpin 2011-07-18 16:34:35 -04:00
parent 4eb13800cd
commit 3d5169901c
2 changed files with 5 additions and 8 deletions

@ -3,8 +3,6 @@
#include "dfhack/DFTileTypes.h"
#include "dfhack/DFExport.h"
#include <stdio.h>
namespace DFHack
{
const TileRow tileTypeTable[TILE_TYPE_ARRAY_LENGTH] =
@ -692,8 +690,7 @@ namespace DFHack
case OBSIDIAN: match= 80; break;
case STONE: match= 79; break;
}
//Prevent the loop.
matchv=value=(8|4|1);
if( match ) return match;
}
@ -739,7 +736,10 @@ namespace DFHack
//Very picky, only handle known safe tile types.
//Some floors have 4 variants, some have 3, so the order of these matters.
switch( match ){
case 261: match=352+(3&entropy); break; //furrowed soil got chosen by accident.
case 261:
//Furrowed soil got chosen by accident. Fix that.
match=352+(3&entropy);
break;
case 336: //STONE
case 340: //OBSIDIAN
case 344: //featstone

@ -1059,9 +1059,6 @@ bool Maps::WriteVein(t_vein *vein)
return true;
}
#include<stdio.h>
/*
__int16 __userpurge GetGeologicalRegion<ax>(__int16 block_X<cx>, int X<ebx>, __int16 block_Y<di>, int block_addr<esi>, int Y)