1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

Fix -Wsuggest-override on Clang

This commit is contained in:
Arthur O'Dwyer 2022-07-05 13:19:39 -04:00
parent ad47db4240
commit 2ec10ff7f2

View File

@ -39,7 +39,7 @@ struct hrmap_rewrite : hrmap_hyperbolic {
map<heptagon*, pair<heptagon*, string> > asg;
map<pair<heptagon*, string>, heptagon*> asg_rev;
heptagon *create_step(heptagon *h, int direction) {
heptagon *create_step(heptagon *h, int direction) override {
if(h->move(direction)) return h->move(direction);
if(asg.empty()) { asg[h] = {h, start}; h->zebraval = 0; }