mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-26 00:47:00 +00:00
Warped Coast/Sea split correct on small spheres
This commit is contained in:
parent
00d61aae1c
commit
96978027a5
33
cell.cpp
33
cell.cpp
@ -1474,14 +1474,33 @@ auto cellhooks = addHook(clearmemory, 500, clearCellMemory);
|
|||||||
|
|
||||||
int getHemisphere(cell *c, int which) {
|
int getHemisphere(cell *c, int which) {
|
||||||
if(torus) return 0;
|
if(torus) return 0;
|
||||||
if(c->type != 6) {
|
if(ctof(c)) {
|
||||||
int id = c->master->fiftyval;
|
int id = c->master->fiftyval;
|
||||||
int hemitable[3][12] = {
|
if(S7 == 5) {
|
||||||
{ 6, 3, 3, 3, 3, 3,-6,-3,-3,-3,-3,-3},
|
int hemitable[3][12] = {
|
||||||
{ 6, 3, 6, 3, 0, 0,-6,-3,-6,-3, 0, 0},
|
{ 6, 3, 3, 3, 3, 3,-6,-3,-3,-3,-3,-3},
|
||||||
{-3, 0, 3, 0,-6,-6, 3, 0,-3, 0, 6, 6}
|
{ 6, 3, 6, 3, 0, 0,-6,-3,-6,-3, 0, 0},
|
||||||
};
|
{-3, 0, 3, 0,-6,-6, 3, 0,-3, 0, 6, 6}
|
||||||
return hemitable[which][id];
|
};
|
||||||
|
return hemitable[which][id];
|
||||||
|
}
|
||||||
|
else if(S7 == 4) {
|
||||||
|
int hemitable[3][6] = {
|
||||||
|
{ 2, 2, 2,-1,-1,-1},
|
||||||
|
{ 2,-1, 2, 2,-1,-1},
|
||||||
|
{ 2,-1,-1, 2, 2,-1},
|
||||||
|
};
|
||||||
|
return hemitable[which][id];
|
||||||
|
}
|
||||||
|
else if(S7 == 3) {
|
||||||
|
int hemitable[3][4] = {
|
||||||
|
{ 2, 2,-1,-1},
|
||||||
|
{ 2,-1, 2,-1},
|
||||||
|
{ 2,-1,-1, 2},
|
||||||
|
};
|
||||||
|
return hemitable[which][id];
|
||||||
|
}
|
||||||
|
else return 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int score = 0;
|
int score = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user