shmup/centerpc:: some sanity checks to prevent the PC from disappearing

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:04 +02:00
parent db38e0a271
commit e81912c11e
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1154,6 +1154,7 @@ void centerpc(ld aspd) {
DEBBI(DF_GRAPH, ("center pc"));
ors::unrotate(cwtV); ors::unrotate(View);
if(invalid_matrix(cwtV)) return;
transmatrix T = cwtV;
#if MAXMDIM >= 4