1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 13:07:16 +00:00

fixed gRotSpace to gTwistedProduct

This commit is contained in:
Zeno Rogue 2024-06-22 11:17:42 +02:00
parent 71666f5bf7
commit 12332ff361
3 changed files with 4 additions and 4 deletions

View File

@ -151,7 +151,7 @@ void pass_time() {
if(true) { if(true) {
ld delta = t - last_t; ld delta = t - last_t;
dynamicval<eGeometry> g(geometry, geometry == gRotSpace ? geometry : gCubeTiling); dynamicval<eGeometry> g(geometry, geometry == gTwistedProduct ? geometry : gCubeTiling);
const Uint8 *keystate = SDL12_GetKeyState(NULL); const Uint8 *keystate = SDL12_GetKeyState(NULL);
if(keystate['a'] || forcekey == 'a') current = apply_lorentz(current, lorentz(0, 2, delta*accel)), ang = 180, acc = true; if(keystate['a'] || forcekey == 'a') current = apply_lorentz(current, lorentz(0, 2, delta*accel)), ang = 180, acc = true;
@ -645,7 +645,7 @@ bool view_ads_ca() {
color_t statecolor = 0; color_t statecolor = 0;
if(1) { if(1) {
dynamicval<eGeometry> b(geometry, gRotSpace); dynamicval<eGeometry> b(geometry, gTwistedProduct);
shiftmatrix S = where_matrix[c]; shiftmatrix S = where_matrix[c];
for(int i=0; i<=c->type; i++) { for(int i=0; i<=c->type; i++) {
hyperpoint ha = hybrid::get_corner(c, i, 2, 0); hyperpoint ha = hybrid::get_corner(c, i, 2, 0);

View File

@ -57,7 +57,7 @@ auto geoslide(eGeometry g, ccolor::data *canvas, int _jhole, int _jblock) {
set_geometry(gProduct); set_geometry(gProduct);
} }
if(g == gNormal) { if(g == gNormal) {
set_geometry(gRotSpace); set_geometry(gTwistedProduct);
} }
tour::slide_backup<ld>(sightranges[gProduct], 12); tour::slide_backup<ld>(sightranges[gProduct], 12);
tour::slide_backup<ld>(sightranges[gNil], 7); tour::slide_backup<ld>(sightranges[gNil], 7);

View File

@ -157,7 +157,7 @@ void draw_all() {
draw_colored(gCell120, gNormal, 0x00FF00FF); draw_colored(gCell120, gNormal, 0x00FF00FF);
draw_colored(gNil, gNormal, 0xFF0000FF); draw_colored(gNil, gNormal, 0xFF0000FF);
draw_colored(gNormal, gRotSpace, 0x0000FFFF); draw_colored(gNormal, gTwistedProduct, 0x0000FFFF);
draw_colored(gSphere, gProduct, 0x00FF80FF); draw_colored(gSphere, gProduct, 0x00FF80FF);
draw_colored(gNIH, gNormal, 0xFF8000FF); draw_colored(gNIH, gNormal, 0xFF8000FF);