1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

no more crashes in some animations

This commit is contained in:
Zeno Rogue 2019-02-06 16:35:04 +01:00
parent dde8b900d7
commit 29cf07920c

View File

@ -496,7 +496,7 @@ ld circle_radius = acosh(2.), circle_spins = 1;
void moved() { void moved() {
optimizeview(); optimizeview();
if(cheater || autocheat) { if(cheater || autocheat) {
if(hyperbolic && memory_saving_mode && cwt.at != centerover.at && !quotient) { if(hyperbolic && memory_saving_mode && centerover.at && gmatrix.size() && cwt.at != centerover.at && !quotient) {
if(isNeighbor(cwt.at, centerover.at)) { if(isNeighbor(cwt.at, centerover.at)) {
cwt.spin = neighborId(centerover.at, cwt.at); cwt.spin = neighborId(centerover.at, cwt.at);
flipplayer = true; flipplayer = true;