1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

fixed unused variable

This commit is contained in:
Zeno Rogue 2020-09-16 23:52:30 +02:00
parent d35cac293f
commit 32ced09b18

View File

@ -94,7 +94,6 @@ EX int chessvalue(cell *c) {
auto li = gp::get_local_info(c); auto li = gp::get_local_info(c);
bool odd_a = gp::param.first & 1; bool odd_a = gp::param.first & 1;
bool odd_b = gp::param.second & 1; bool odd_b = gp::param.second & 1;
bool odd_S7 = S7 & 1;
// odd-odd // odd-odd
if(odd_a && odd_b) if(odd_a && odd_b)
return (li.relative.second & 1) ^ (li.last_dir & 1) ^ (c->master->dm4 & 1) ^ ((c->master->emeraldval & 1) ? 1 : 0); return (li.relative.second & 1) ^ (li.last_dir & 1) ^ (c->master->dm4 & 1) ^ ((c->master->emeraldval & 1) ? 1 : 0);