mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-05-10 00:52:07 +00:00
rogueviz:: adjusted to shmup changes
This commit is contained in:
@@ -175,7 +175,6 @@ template<class T, class U> function<void(presmode)> roguevizslide(char c, const
|
||||
|
||||
if(mode == 3 || mode == pmGeometry || mode == pmGeometryReset) {
|
||||
rogueviz::close();
|
||||
shmup::clearMonsters();
|
||||
if(mode == pmGeometryReset && !(slides[currentslide].flags & QUICKGEO)) t();
|
||||
}
|
||||
|
||||
@@ -198,7 +197,6 @@ function<void(presmode)> roguevizslide_action(char c, const T& t, const U& act)
|
||||
|
||||
if(mode == pmStop || mode == pmGeometry || mode == pmGeometryReset) {
|
||||
rogueviz::close();
|
||||
shmup::clearMonsters();
|
||||
if(mode == pmGeometryReset && !(slides[currentslide].flags & QUICKGEO)) t();
|
||||
}
|
||||
|
||||
|
||||
@@ -289,12 +289,9 @@ void viz_longpath() {
|
||||
void unoptimize() {
|
||||
use_cells_to_draw = true;
|
||||
drawthemap();
|
||||
for(int i=0; i<isize(vdata); i++) {
|
||||
vdata[i].m->at = inverse_shift(ggmatrix(cwt.at), ggmatrix(vdata[i].m->base)) * vdata[i].m->at;
|
||||
vdata[i].m->base = cwt.at;
|
||||
}
|
||||
for(int i=0; i<isize(vdata); i++)
|
||||
vdata[i].be(cwt.at, inverse_shift(ggmatrix(cwt.at), ggmatrix(vdata[i].m->base)) * vdata[i].m->at);
|
||||
use_cells_to_draw = false;
|
||||
shmup::fixStorage();
|
||||
rogueviz::rv_change(dont_optimize, true);
|
||||
rogueviz::rv_change(frustum_culling, false);
|
||||
}
|
||||
|
||||
@@ -374,16 +374,19 @@ void distribute_neurons() {
|
||||
int id = p.second;
|
||||
int s = p.first;
|
||||
auto& w = *whowon[s];
|
||||
vdata[id].m->base = w.where;
|
||||
|
||||
|
||||
transmatrix At = Id;
|
||||
|
||||
if(!triangulate(data[s].val, w, find, vdata[id].m->at))
|
||||
vdata[id].m->at =
|
||||
At =
|
||||
spin(TAU*w.csample / w.drawn_samples) * xpush(rad * (w.drawn_samples-1) / w.drawn_samples);
|
||||
|
||||
vdata[id].be(w.where, At);
|
||||
|
||||
w.csample++;
|
||||
for(auto& e: vdata[id].edges) e.second->orig = nullptr;
|
||||
}
|
||||
|
||||
shmup::fixStorage();
|
||||
setindex(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user