mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
crash fixed again
This commit is contained in:
parent
25c09154dc
commit
f009e80689
1
hyper.h
1
hyper.h
@ -864,7 +864,6 @@ transmatrix calc_relative_matrix(cell *c, cell *c1, const hyperpoint& point_hint
|
||||
transmatrix calc_relative_matrix(cell *c, cell *c1, int direction_hint);
|
||||
|
||||
static const int NOHINT = -1;
|
||||
|
||||
// graph
|
||||
|
||||
void showMissionScreen();
|
||||
|
@ -1706,7 +1706,7 @@ namespace mapeditor {
|
||||
return false;
|
||||
#else
|
||||
|
||||
if(c == drawcell && editingShape(group, id) && prio == PPR_DEFAULT)
|
||||
if(c && c == drawcell && editingShape(group, id) && prio == PPR_DEFAULT)
|
||||
drawtrans = V;
|
||||
|
||||
usershape *us = usershapes[group][id];
|
||||
@ -1724,7 +1724,7 @@ namespace mapeditor {
|
||||
if(cmode & sm::DRAW) {
|
||||
|
||||
#if CAP_TEXTURE
|
||||
if(texture::config.tstate == texture::tsActive && lmouseover && !mouseout() && (lstartcell || !holdmouse)) {
|
||||
if(texture::config.tstate == texture::tsActive && lmouseover && !mouseout() && (lstartcell || !holdmouse) && c) {
|
||||
cell *ls = lstartcell ? lstartcell : lmouseover;
|
||||
auto sio = patterns::getpatterninfo0(ls);
|
||||
auto sih = patterns::getpatterninfo0(c);
|
||||
@ -1768,8 +1768,6 @@ namespace mapeditor {
|
||||
0xFFFF00);
|
||||
} */
|
||||
|
||||
if(c == ew.c) mapeditor::drawtrans = V;
|
||||
|
||||
if(!us) return false;
|
||||
|
||||
usershapelayer &ds(us->d[mapeditor::dslayer]);
|
||||
|
Loading…
Reference in New Issue
Block a user