mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
rogueviz:: fixed init
This commit is contained in:
parent
427df5e8fe
commit
8a5c4b0887
@ -952,11 +952,6 @@ void readcolor(const string& cfname) {
|
||||
}
|
||||
|
||||
void init(void *_vizid, flagtype _vizflags) {
|
||||
bool was_on = vizid;
|
||||
vizid = _vizid;
|
||||
vizflags = _vizflags;
|
||||
|
||||
if(was_on) return;
|
||||
|
||||
autocheat = true;
|
||||
showstartmenu = false;
|
||||
@ -978,7 +973,9 @@ void init(void *_vizid, flagtype _vizflags) {
|
||||
calcparam();
|
||||
drawthemap();
|
||||
gmatrix0 = gmatrix;
|
||||
addMessage("RogueViz enabled");
|
||||
|
||||
vizid = _vizid;
|
||||
vizflags = _vizflags;
|
||||
}
|
||||
|
||||
int search_for = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user