ads:: do not load earth textures if already loaded

This commit is contained in:
Zeno Rogue 2023-08-08 12:05:33 +02:00
parent 522436ba96
commit 22947c7fd1
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ void reset_textures() {
}
void init_textures() {
if(!earth_textures.empty()) return;
earth_textures.clear();
string dir = "ds-images/";
fhstream f(dir + "list.txt", "rt");