1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 07:16:01 +00:00
This commit is contained in:
Zeno Rogue
2018-03-30 00:18:41 +02:00
parent 3f45beba3b
commit fdde515afe
4 changed files with 32 additions and 4 deletions

View File

@@ -368,6 +368,11 @@ int dexp_comb_colors[16] = {
int coverage_style;
vector<pair<hyperpoint, int> > coverage;
#ifndef CAP_KUEN_MAP
#define CAP_KUEN_MAP 0
#endif
#if CAP_KUEN_MAP
void draw_kuen_map() {
SDL_Surface *kuen_map = SDL_CreateRGBSurface(SDL_SWSURFACE,512,512,32,0,0,0,0);
@@ -404,6 +409,7 @@ void draw_kuen_map() {
IMAGESAVE(kuen_map, "kuen.png");
}
#endif
void full_mesh() {
rug::clear_model();
@@ -542,7 +548,9 @@ void run_kuen() {
// delete the old mesh
for(auto t: mesh) delete t;
#if CAP_KUEN_MAP
draw_kuen_map();
#endif
}
template<class T> void run_function(T f) {