mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-28 04:17:39 +00:00
extra guards
This commit is contained in:
@@ -2800,12 +2800,18 @@ EX namespace sword {
|
||||
EX void determine_sword_angles() {
|
||||
sword_angles = 2;
|
||||
if(SWORDDIM == 3) sword_angles = 1;
|
||||
#if CAP_IRR
|
||||
else if(IRREGULAR) sword_angles = 840;
|
||||
#endif
|
||||
#if CAP_BT
|
||||
else if(bt::in()) sword_angles = 42;
|
||||
#endif
|
||||
#if CAP_ARCM
|
||||
else if(arcm::in()) {
|
||||
if(!PURE) possible_divisor((BITRUNCATED ? 2 : 1) * isize(arcm::current.faces));
|
||||
if(!DUAL) for(int f: arcm::current.faces) possible_divisor(f);
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
possible_divisor(S7);
|
||||
if(BITRUNCATED) possible_divisor(S3);
|
||||
|
||||
Reference in New Issue
Block a user