diff --git a/source/src/client.cpp b/source/src/client.cpp index 423bd928..89634547 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -543,7 +543,7 @@ void gets2c() // get updates from the server // sendmap/getmap commands, should be replaced by more intuitive map downloading -cvector securemaps; +vector securemaps; void resetsecuremaps() { securemaps.deletearrays(); } void securemap(char *map) { if(map) securemaps.add(newstring(map)); } diff --git a/source/src/cube.h b/source/src/cube.h index bb694811..0585f58c 100644 --- a/source/src/cube.h +++ b/source/src/cube.h @@ -18,11 +18,6 @@ #include "console.h" #endif -typedef vector cvector; -typedef vector ivector; - -// globals ooh naughty - extern sqr *world, *wmip[]; // map data, the mips are sequential 2D arrays in memory extern header hdr; // current map header extern int sfactor, ssize; // ssize = 2^sfactor diff --git a/source/src/docs.cpp b/source/src/docs.cpp index f04ca614..56a1c6c6 100644 --- a/source/src/docs.cpp +++ b/source/src/docs.cpp @@ -63,7 +63,7 @@ struct docident { char *name, *desc; vector arguments; - cvector remarks; + vector remarks; vector references; vector examples; vector keys; @@ -187,7 +187,7 @@ void listundoneidents(vector &inames, int allidents) docident *id = docidents.access(name); if(id) // search for substrings that indicate undoneness { - cvector srch; + vector srch; srch.add(id->name); srch.add(id->desc); loopvj(id->remarks) srch.add(id->remarks[j]); @@ -235,7 +235,7 @@ void docfind(char *search) { enumerate(docidents, docident, i, { - cvector srch; + vector srch; srch.add(i.name); srch.add(i.desc); loopvk(i.remarks) srch.add(i.remarks[k]); diff --git a/source/src/menus.cpp b/source/src/menus.cpp index 3368d869..2dd5ce13 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -1003,7 +1003,7 @@ void gmenu::init() if(dirlist) { items.deletecontents(); - cvector files; + vector files; listfiles(dirlist->dir, dirlist->ext, files); files.sort(stringsort); loopv(files) diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index 6570c69b..6320a9a9 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -652,7 +652,7 @@ VARP(teamdisplaymode, 0, 1, 2); #define SKINBASE "packages/models/playermodels" VARP(hidecustomskins, 0, 0, 2); -static cvector playerskinlist; +static vector playerskinlist; const char *getclientskin(const char *name, const char *suf) { diff --git a/source/src/server.cpp b/source/src/server.cpp index 50494fe6..a001aa97 100644 --- a/source/src/server.cpp +++ b/source/src/server.cpp @@ -936,7 +936,7 @@ int arenaround = 0, arenaroundstartmillis = 0; struct twoint { int index, value; }; int cmpscore(const int *a, const int *b) { return clients[*a]->at3_score - clients[*b]->at3_score; } int cmptwoint(const struct twoint *a, const struct twoint *b) { return a->value - b->value; } -ivector tdistrib; +vector tdistrib; vector sdistrib; void distributeteam(int team) @@ -1472,7 +1472,7 @@ int calcscores() // skill eval return sum; } -ivector shuffle; +vector shuffle; void shuffleteams(int ftr = FTR_AUTOTEAM) { diff --git a/source/src/sound.h b/source/src/sound.h index 2240f925..c2f07117 100644 --- a/source/src/sound.h +++ b/source/src/sound.h @@ -358,7 +358,7 @@ class audiomanager { bool nosound; float currentpitch; - cvector musics; + vector musics; ALCdevice *device; ALCcontext *context; diff --git a/source/src/tools.h b/source/src/tools.h index 7662a503..b5d52c58 100644 --- a/source/src/tools.h +++ b/source/src/tools.h @@ -471,10 +471,6 @@ template struct vector } }; -typedef vector cvector; -typedef vector ivector; -typedef vector usvector; - static inline uint hthash(const char *key) { uint h = 5381; diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index 8e06807f..076a3a1a 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -770,7 +770,7 @@ void listmapdependencies_all(int sure) stream *f = openfile(MAPDEPFILENAME, "w"); delete f; - cvector files; + vector files; listfiles("packages/maps", "cgz", files); listfiles("packages/maps/official", "cgz", files); files.sort(stringsort);