1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-18 22:55:12 +00:00

racing:: first commit

This commit is contained in:
Zeno Rogue
2018-11-17 19:30:50 +01:00
parent 74ad8ea135
commit 16a5e45c0a
9 changed files with 479 additions and 2 deletions

View File

@@ -1002,6 +1002,13 @@ void centerpc(ld aspd) {
if(geometry == gCrystal)
crystal::centerrug(aspd);
#if CAP_RACING
if(racing::on) {
racing::set_view();
return;
}
#endif
if(ors::mode == 2 && vid.sspeed < 5) return;
if(vid.sspeed >= 4.99) aspd = 1000;
@@ -1049,6 +1056,8 @@ void centerpc(ld aspd) {
}
void optimizeview() {
subscreen_split(optimizeview);
if(centerover.at && inmirror(centerover.at)) {
anims::reflect_view();