mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-09-17 01:21:19 +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) {
|
if(mode == 3 || mode == pmGeometry || mode == pmGeometryReset) {
|
||||||
rogueviz::close();
|
rogueviz::close();
|
||||||
shmup::clearMonsters();
|
|
||||||
if(mode == pmGeometryReset && !(slides[currentslide].flags & QUICKGEO)) t();
|
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) {
|
if(mode == pmStop || mode == pmGeometry || mode == pmGeometryReset) {
|
||||||
rogueviz::close();
|
rogueviz::close();
|
||||||
shmup::clearMonsters();
|
|
||||||
if(mode == pmGeometryReset && !(slides[currentslide].flags & QUICKGEO)) t();
|
if(mode == pmGeometryReset && !(slides[currentslide].flags & QUICKGEO)) t();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -289,12 +289,9 @@ void viz_longpath() {
|
|||||||
void unoptimize() {
|
void unoptimize() {
|
||||||
use_cells_to_draw = true;
|
use_cells_to_draw = true;
|
||||||
drawthemap();
|
drawthemap();
|
||||||
for(int i=0; i<isize(vdata); i++) {
|
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].be(cwt.at, inverse_shift(ggmatrix(cwt.at), ggmatrix(vdata[i].m->base)) * vdata[i].m->at);
|
||||||
vdata[i].m->base = cwt.at;
|
|
||||||
}
|
|
||||||
use_cells_to_draw = false;
|
use_cells_to_draw = false;
|
||||||
shmup::fixStorage();
|
|
||||||
rogueviz::rv_change(dont_optimize, true);
|
rogueviz::rv_change(dont_optimize, true);
|
||||||
rogueviz::rv_change(frustum_culling, false);
|
rogueviz::rv_change(frustum_culling, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -374,16 +374,19 @@ void distribute_neurons() {
|
|||||||
int id = p.second;
|
int id = p.second;
|
||||||
int s = p.first;
|
int s = p.first;
|
||||||
auto& w = *whowon[s];
|
auto& w = *whowon[s];
|
||||||
vdata[id].m->base = w.where;
|
|
||||||
|
transmatrix At = Id;
|
||||||
|
|
||||||
if(!triangulate(data[s].val, w, find, vdata[id].m->at))
|
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);
|
spin(TAU*w.csample / w.drawn_samples) * xpush(rad * (w.drawn_samples-1) / w.drawn_samples);
|
||||||
|
|
||||||
|
vdata[id].be(w.where, At);
|
||||||
|
|
||||||
w.csample++;
|
w.csample++;
|
||||||
for(auto& e: vdata[id].edges) e.second->orig = nullptr;
|
for(auto& e: vdata[id].edges) e.second->orig = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
shmup::fixStorage();
|
|
||||||
setindex(false);
|
setindex(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user