From e61c684bca898f24832a6c043295d5152d4c44c1 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 3 Apr 2019 20:52:30 +0200 Subject: [PATCH] removed the redundant copy of master_relative in shmup --- shmup.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/shmup.cpp b/shmup.cpp index 1843eb2b..9af1c3b1 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -3735,37 +3735,6 @@ void destroyBoats(cell *c) { m->inBoat = false; } -transmatrix master_relative(cell *c, bool get_inverse) { - if(0); - #if CAP_IRR - else if(IRREGULAR) { - int id = irr::cellindex[c]; - ld alpha = 2 * M_PI / S7 * irr::periodmap[c->master].base.spin; - return get_inverse ? irr::cells[id].rpusher * spin(-alpha-master_to_c7_angle()): spin(alpha + master_to_c7_angle()) * irr::cells[id].pusher; - } - #endif - #if CAP_GP - else if(GOLDBERG) { - if(c == c->master->c7) { - return spin((get_inverse?-1:1) * master_to_c7_angle()); - } - else { - auto li = gp::get_local_info(c); - transmatrix T = spin(master_to_c7_angle()) * gp::Tf[li.last_dir][li.relative.first&31][li.relative.second&31][gp::fixg6(li.total_dir)]; - if(get_inverse) T = inverse(T); - return T; - } - } - #endif - else if(BITRUNCATED && !euclid) { - for(int d=0; dmaster->c7->move(d) == c) - return (get_inverse?invhexmove:hexmove)[d]; - return Id; - } - else - return pispin * Id; - } - void virtualRebase(shmup::monster *m, bool tohex) { virtualRebase(m->base, m->at, tohex); }