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:
committed by
Zeno Rogue
parent
26fe57ef92
commit
a478bb1485
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user