hybrid:: refactored the common parts of prod and sl2, also used them when applicable

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:15 +02:00
parent ab80b28782
commit 1e6970ca28
20 changed files with 169 additions and 224 deletions
+2 -2
View File
@@ -219,7 +219,7 @@ EX namespace yendor {
nyi.path[0] = yendor;
}
else if(prod) {
else if(hybri) {
/* I am lazy */
for(int i=1; i<=YDIST-1; i++) nyi.path[i] = nyi.path[i-1]->cmove(nyi.path[i-1]->type-1);
}
@@ -1055,7 +1055,7 @@ int modecodetable[42][6] = {
modecode_t modecode() {
// bit 61: product
if(prod) return PIU(modecode()) | (1ll << 61);
if(hybri) return PIU(modecode()) | (1ll << 61);
#if CAP_SAVE
if(anticheat::tampered || cheater || geometry >= gGUARD) return 6;
#endif