mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Fixed the lepton size being incorrect.
This commit is contained in:
@@ -2367,7 +2367,6 @@ TemplateType TemplateTypeClass::From_Name(char const * name)
|
||||
return(TEMPLATE_NONE);
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************************************
|
||||
* TemplateTypeClass::Occupy_List -- Determines occupation list. *
|
||||
* *
|
||||
|
||||
@@ -999,7 +999,6 @@ bool CellClass::Get_Template_Info(char *template_name, int &icon, void *&image_d
|
||||
}
|
||||
|
||||
void CellClass::ConvertCoordsToIsometric(int& x, int& y) {
|
||||
y = y * 2;
|
||||
int tileWidth = CELL_PIXEL_W;
|
||||
int tileHeight = CELL_PIXEL_H;
|
||||
int sx = (x / CELL_PIXEL_W) * (tileWidth / 2) - (y / CELL_PIXEL_W) * (tileWidth / 2);
|
||||
|
||||
@@ -44,8 +44,8 @@ struct Image_t;
|
||||
#define ICON_PIXEL_W 48
|
||||
#define ICON_PIXEL_H 24
|
||||
// jmarshall end
|
||||
#define ICON_LEPTON_W 512
|
||||
#define ICON_LEPTON_H 256
|
||||
#define ICON_LEPTON_W 256
|
||||
#define ICON_LEPTON_H 128
|
||||
#define CELL_PIXEL_W ICON_PIXEL_W
|
||||
#define CELL_PIXEL_H ICON_PIXEL_H
|
||||
#define CELL_LEPTON_W ICON_LEPTON_W
|
||||
|
||||
@@ -64,11 +64,13 @@ struct IsoTileHeader_t {
|
||||
int TileImageHeight;
|
||||
};
|
||||
|
||||
#define WESTWOOD_ISO_NOTSET_FLAG -842150451 // Westwood didn't zero everything out in there tile exporter, so this is required.
|
||||
|
||||
struct IsoTileImageHeader
|
||||
{
|
||||
uint8_t* GetExtraData(void)
|
||||
{
|
||||
if(ExtraOffset == 0) {
|
||||
{
|
||||
if(ExtraOffset == 0 || ExtraOffset == WESTWOOD_ISO_NOTSET_FLAG) {
|
||||
return NULL;
|
||||
}
|
||||
return reinterpret_cast<uint8_t*>(this) + ExtraOffset + sizeof(IsoTileImageHeader);
|
||||
|
||||
Reference in New Issue
Block a user