1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-14 01:58:06 +00:00

better mode handling

This commit is contained in:
Zeno Rogue
2017-07-12 19:50:39 +02:00
parent 94efef5d65
commit a6f176510e
17 changed files with 706 additions and 156 deletions

View File

@@ -790,7 +790,7 @@ namespace mapeditor {
}
void showMapEditor() {
cmode2 = smMap;
cmode = sm::MAP;
gamescreen(0);
int fs = vid.fsize + 5;
@@ -1279,7 +1279,7 @@ namespace mapeditor {
void drawHandleKey(int sym, int uni);
void showDrawEditor() {
cmode2 = smDraw;
cmode = sm::DRAW;
drawGrid();
if(!mouseout()) getcstat = '-';
@@ -1882,7 +1882,7 @@ namespace mapeditor {
}
#ifndef NOEDIT
if(cmode2 == smDraw && mapeditor::editingShape(group, id)) {
if((cmode == sm::DRAW) && mapeditor::editingShape(group, id)) {
/* for(int a=0; a<size(ds.list); a++) {
hyperpoint P2 = V * ds.list[a];