consistency rename; texdata_t -> maptexdata_t

This commit is contained in:
Jonathan 2022-06-16 09:35:46 -04:00
parent c62480c337
commit 617cd3b089
2 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ public:
const mapbrush_t &mapbrush(int i) const;
};
struct texdata_t
struct maptexdata_t
{
std::string name;
surfflags_t flags;
@ -132,7 +132,7 @@ struct mapdata_t
std::vector<mapbrush_t> brushes;
std::vector<mapentity_t> entities;
std::vector<qbsp_plane_t> planes;
std::vector<texdata_t> miptex;
std::vector<maptexdata_t> miptex;
std::vector<maptexinfo_t> mtexinfos;
/* quick lookup for texinfo */

View File

@ -179,7 +179,7 @@ int FindMiptex(const char *name, std::optional<extended_texinfo_t> &extended_inf
}
for (i = 0; i < map.miptex.size(); i++) {
const texdata_t &tex = map.miptex.at(i);
const maptexdata_t &tex = map.miptex.at(i);
if (!Q_strcasecmp(name, tex.name.c_str())) {
return i;
@ -206,7 +206,7 @@ int FindMiptex(const char *name, std::optional<extended_texinfo_t> &extended_inf
}
for (i = 0; i < map.miptex.size(); i++) {
const texdata_t &tex = map.miptex.at(i);
const maptexdata_t &tex = map.miptex.at(i);
if (!Q_strcasecmp(name, tex.name.c_str()) && tex.flags.native == extended_info->flags.native &&
tex.value == extended_info->value && tex.animation == extended_info->animation) {