mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r26076) -Codechange: upgrade some C-style named structs to C++-style named structs
This commit is contained in:
parent
2f51639af8
commit
5049e938f5
@ -721,7 +721,7 @@ bool TarScanner::AddFile(const char *filename, size_t basepath_length, const cha
|
|||||||
assert(tar_filename == NULL);
|
assert(tar_filename == NULL);
|
||||||
|
|
||||||
/* The TAR-header, repeated for every file */
|
/* The TAR-header, repeated for every file */
|
||||||
typedef struct TarHeader {
|
struct TarHeader {
|
||||||
char name[100]; ///< Name of the file
|
char name[100]; ///< Name of the file
|
||||||
char mode[8];
|
char mode[8];
|
||||||
char uid[8];
|
char uid[8];
|
||||||
@ -740,7 +740,7 @@ bool TarScanner::AddFile(const char *filename, size_t basepath_length, const cha
|
|||||||
char prefix[155]; ///< Path of the file
|
char prefix[155]; ///< Path of the file
|
||||||
|
|
||||||
char unused[12];
|
char unused[12];
|
||||||
} TarHeader;
|
};
|
||||||
|
|
||||||
/* Check if we already seen this file */
|
/* Check if we already seen this file */
|
||||||
TarList::iterator it = _tar_list[this->subdir].find(filename);
|
TarList::iterator it = _tar_list[this->subdir].find(filename);
|
||||||
|
@ -199,10 +199,10 @@ static uint32 GetNearbyTileInformation(byte parameter, TileIndex tile, bool grf_
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Structure with user-data for SearchNearbyHouseXXX - functions */
|
/** Structure with user-data for SearchNearbyHouseXXX - functions */
|
||||||
typedef struct {
|
struct SearchNearbyHouseData {
|
||||||
const HouseSpec *hs; ///< Specs of the house that started the search.
|
const HouseSpec *hs; ///< Specs of the house that started the search.
|
||||||
TileIndex north_tile; ///< Northern tile of the house.
|
TileIndex north_tile; ///< Northern tile of the house.
|
||||||
} SearchNearbyHouseData;
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback function to search a house by its HouseID
|
* Callback function to search a house by its HouseID
|
||||||
|
Loading…
Reference in New Issue
Block a user