Fixed templatetypeclass land_type. Template's can be placed but only the first tile seems to work.

This commit is contained in:
Justin Marshall
2020-07-01 11:14:03 -07:00
parent f6beb9b4ee
commit c7748a616d
11 changed files with 117 additions and 435 deletions
+4 -4
View File
@@ -90,7 +90,7 @@ bool TemplateClass::Mark(MarkType mark)
void const * iset = Get_Image_Data();
if (iset && ObjectClass::Mark(mark)) {
void * map = Get_Icon_Set_Map(iset);
//void * map = Get_Icon_Set_Map(iset);
for (int y = 0; y < Class->Height; y++) {
for (int x = 0; x < Class->Width; x++) {
@@ -104,10 +104,10 @@ bool TemplateClass::Mark(MarkType mark)
** icon is associated with this logical position, then don't do any action
** since none is required.
*/
char * mapptr = (char*)map;
bool real = (mapptr[number] != -1);
//char * mapptr = (char*)map;
//bool real = (mapptr[number] != -1);
if (real) {
{
/*
** Lift the terrain object from the map.
*/