mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
ads-games:: fixes to ds-record
This commit is contained in:
parent
1391a0e47f
commit
25997dc6c1
@ -164,7 +164,7 @@ void draw_game_cell(const cell_to_draw& cd) {
|
||||
}
|
||||
}
|
||||
|
||||
if(paused && c == vctr_ship && !game_over) {
|
||||
if(paused && c == vctr_ship && !game_over && !inHighQual) {
|
||||
cross_result cr;
|
||||
hybrid::in_actual([&]{
|
||||
auto h = ads_inverse(current_ship * vctrV_ship);
|
||||
|
@ -555,7 +555,7 @@ void view_ds_game() {
|
||||
queuestr(shiftless(sphereflip), .1, str, 0xFFFF00, 8);
|
||||
}
|
||||
|
||||
if(paused && !game_over) {
|
||||
if(paused && !game_over && !inHighQual) {
|
||||
vector<hyperpoint> pts;
|
||||
int ok = 0, bad = 0;
|
||||
for(int i=0; i<=360; i++) {
|
||||
@ -612,11 +612,11 @@ void run_ds_game() {
|
||||
|
||||
void ds_record() {
|
||||
ld full = 1000;
|
||||
anims::period = full * history.back().start / ds_simspeed;
|
||||
anims::period = full * history.back().start / DS_(simspeed);
|
||||
anims::noframes = anims::period * 60 / 1000;
|
||||
dynamicval<bool> b(paused, true);
|
||||
int a = addHook(anims::hooks_anim, 100, [&] {
|
||||
view_pt = (ticks / full) * ds_simspeed;
|
||||
view_pt = (ticks / full) * DS_(simspeed);
|
||||
for(auto& ss: history)
|
||||
if(ss.start + ss.duration > view_pt) {
|
||||
if(sphere) {
|
||||
@ -625,7 +625,7 @@ void ds_record() {
|
||||
current.T = inverse(ss.at.T * spin(-ss.ang*degree));
|
||||
current.T = lorentz(3, 2, view_pt - ss.start) * current.T;
|
||||
}
|
||||
else PIA([&] {
|
||||
else PIA({
|
||||
current = ads_inverse(ss.at * spin(-ss.ang*degree));
|
||||
vctr = ss.vctr;
|
||||
vctrV = ss.vctrV;
|
||||
|
Loading…
Reference in New Issue
Block a user