mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Fixed templatetypeclass land_type. Template's can be placed but only the first tile seems to work.
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user