mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
Warped Coast/Sea split correct on small spheres
This commit is contained in:
parent
00d61aae1c
commit
96978027a5
21
cell.cpp
21
cell.cpp
@ -1474,8 +1474,9 @@ auto cellhooks = addHook(clearmemory, 500, clearCellMemory);
|
||||
|
||||
int getHemisphere(cell *c, int which) {
|
||||
if(torus) return 0;
|
||||
if(c->type != 6) {
|
||||
if(ctof(c)) {
|
||||
int id = c->master->fiftyval;
|
||||
if(S7 == 5) {
|
||||
int hemitable[3][12] = {
|
||||
{ 6, 3, 3, 3, 3, 3,-6,-3,-3,-3,-3,-3},
|
||||
{ 6, 3, 6, 3, 0, 0,-6,-3,-6,-3, 0, 0},
|
||||
@ -1483,6 +1484,24 @@ int getHemisphere(cell *c, int which) {
|
||||
};
|
||||
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 {
|
||||
int score = 0;
|
||||
for(int i=0; i<6; i+=2)
|
||||
|
Loading…
Reference in New Issue
Block a user