mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
mark_always internal option
This commit is contained in:
parent
e32f1a4670
commit
296726a887
@ -581,6 +581,8 @@ EX bool mightBeMine(cell *c) {
|
||||
|
||||
EX hookset<bool(cell*)> hooks_mark;
|
||||
|
||||
EX bool mark_always = true;
|
||||
|
||||
EX void performMarkCommand(cell *c) {
|
||||
if(!c) return;
|
||||
if(callhandlers(false, hooks_mark, c)) return;
|
||||
@ -596,6 +598,7 @@ EX void performMarkCommand(cell *c) {
|
||||
if(c->item) return;
|
||||
if(!mightBeMine(c)) return;
|
||||
bool adj = false;
|
||||
if(mark_always) adj = true;
|
||||
forCellEx(c2, c) if(c2->wall == waMineOpen) adj = true;
|
||||
if(adj) c->landparam ^= 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user