From 3a52193426f5130971f4cdc5c090ef9c967da251 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 25 Jan 2018 17:22:04 +0100 Subject: [PATCH] external additions can wrap drawthemap --- graph.cpp | 4 +++- hyper.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 15b30929..7d24abe7 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5342,6 +5342,8 @@ void calcparam() { int ringcolor = darkena(0xFF, 0, 0xFF); +function wrap_drawfullmap = drawfullmap; + void drawfullmap() { DEBB(DF_GRAPH, (debugfile,"draw full map\n")); @@ -5438,7 +5440,7 @@ void gamescreen(int _darken) { rug::actDraw(); } else #endif - drawfullmap(); + wrap_drawfullmap(); if(conformal::includeHistory) conformal::restoreBack(); diff --git a/hyper.h b/hyper.h index fb1f5c92..3be4f5e6 100644 --- a/hyper.h +++ b/hyper.h @@ -552,6 +552,7 @@ hyperpoint gethyper(ld x, ld y); void resetview(); extern heptspin viewctr; extern cellwalker centerover; void drawthemap(); void drawfullmap(); +extern function wrap_drawfullmap; bool displaystr(int x, int y, int shift, int size, const char *str, int color, int align); bool displaystr(int x, int y, int shift, int size, const string& str, int color, int align);