mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-03 19:27:54 +00:00
kite-and-dart working correctly in embedded_plane
This commit is contained in:
@@ -468,6 +468,7 @@ EX ld cellgfxdist(cell *c, int d) { return currentmap->spacedist(c, d); }
|
||||
|
||||
EX transmatrix ddspin_side(cell *c, int d, ld bonus IS(0)) {
|
||||
if(kite::in()) {
|
||||
if(embedded_plane) return spin(bonus);
|
||||
hyperpoint h1 = get_corner_position(c, gmod(d, c->type), 3);
|
||||
hyperpoint h2 = get_corner_position(c, gmod(d+1, c->type) , 3);
|
||||
hyperpoint hm = mid(h1, h2);
|
||||
@@ -478,6 +479,7 @@ EX transmatrix ddspin_side(cell *c, int d, ld bonus IS(0)) {
|
||||
|
||||
EX transmatrix iddspin_side(cell *c, int d, ld bonus IS(0)) {
|
||||
if(kite::in()) {
|
||||
if(embedded_plane) return spin(bonus);
|
||||
hyperpoint h1 = get_corner_position(c, gmod(d, c->type), 3);
|
||||
hyperpoint h2 = get_corner_position(c, gmod(d+1, c->type) , 3);
|
||||
hyperpoint hm = mid(h1, h2);
|
||||
|
Reference in New Issue
Block a user