mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Merge branch 'Isometric-Dev' into master
This commit is contained in:
@@ -2200,7 +2200,7 @@ void UnitClass::Draw_It(int x, int y, WindowNumberType window) const
|
||||
if (Flagged != HOUSE_NONE) {
|
||||
shapefile = MFCD::Retrieve("FLAGFLY.SHP");
|
||||
int flag_x = x + (ICON_PIXEL_W / 2) - 2;
|
||||
int flag_y = y + (3 * ICON_PIXEL_H / 4) - Get_Build_Frame_Height(shapefile);
|
||||
int flag_y = y + (3 * ICON_PIXEL_H / 4) - Get_Build_Frame_Height(shapefile, 0);
|
||||
CC_Draw_Shape(this, "FLAGFLY", shapefile, Frame % 14, flag_x, flag_y, window, SHAPE_CENTER|SHAPE_FADING|SHAPE_GHOST, HouseClass::As_Pointer(Flagged)->Remap_Table(false, Class->Remap), Map.UnitShadow, DIR_N, 0x0100, Flagged);
|
||||
}
|
||||
|
||||
@@ -3189,6 +3189,10 @@ MoveType UnitClass::Can_Enter_Cell(CELL cell, FacingType ) const
|
||||
|
||||
if ((unsigned)cell >= MAP_CELL_TOTAL) return(MOVE_NO);
|
||||
|
||||
if (cellptr->bigOverlay != NULL) {
|
||||
return MOVE_NO;
|
||||
}
|
||||
|
||||
/*
|
||||
** Moving off the edge of the map is not allowed unless
|
||||
** this is a loaner vehicle.
|
||||
|
||||
Reference in New Issue
Block a user