1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

manual-animation:: crosshair displayed only when keys_on

This commit is contained in:
Zeno Rogue 2019-10-21 22:35:45 +02:00
parent 51e1fe06b3
commit f3f61a1337

View File

@ -29,9 +29,13 @@ bool trailer_turn(int delta) {
bool recording; bool recording;
bool keys_on = false;
void trailer_frame() { void trailer_frame() {
// if(saving_positions || !isize(saved)) // if(saving_positions || !isize(saved))
if(!recording) queuechr(current_display->xcenter, current_display->ycenter, 0, 16, '+', 0xFFFFFFFF); if(!recording && keys_on) queuechr(current_display->xcenter, current_display->ycenter, 0, 16, '+', 0xFFFFFFFF);
if(!recording && keys_on) queuechr(current_display->xcenter/2, current_display->ycenter, 0, 16, '+', 0xFFFFFFFF);
if(!recording && keys_on) queuechr(current_display->xcenter*3/2, current_display->ycenter, 0, 16, '+', 0xFFFFFFFF);
if(saving_positions && ticks > next_pos_tick) { if(saving_positions && ticks > next_pos_tick) {
next_pos_tick += 66; next_pos_tick += 66;
@ -40,8 +44,6 @@ void trailer_frame() {
} }
} }
bool keys_on = false;
ld stepdist = 0.02; ld stepdist = 0.02;
ld stepang = 0.01; ld stepang = 0.01;