1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 17:37:39 +00:00

Fix some minor std::function-related bugs.

Lambdas to be stored in `function<void()>` should not return `bool`.

Two uses of `std::function` could be just `function`, like everywhere
else in the codebase.
This commit is contained in:
Arthur O'Dwyer
2019-01-05 20:40:45 -05:00
committed by Zeno Rogue
parent 26fe57ef92
commit a478bb1485
4 changed files with 6 additions and 9 deletions

View File

@@ -473,7 +473,7 @@ namespace dialog {
color_t *colorPointer;
bool handleKeyColor(int sym, int uni) {
void handleKeyColor(int sym, int uni) {
unsigned& color = *colorPointer;
int shift = colorAlpha ? 0 : 8;
@@ -514,7 +514,6 @@ namespace dialog {
else if(doexiton(sym, uni)) {
popScreen();
}
return false;
}
bool colorAlpha;