mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
fixed roguevizslide
This commit is contained in:
parent
97b3a23fda
commit
0a5f0b04e0
@ -143,7 +143,7 @@ namespace rogueviz {
|
||||
inline hookset<void(string, vector<slide>&)> hooks_build_rvtour;
|
||||
slide *gen_rvtour();
|
||||
|
||||
template<class T, class U> function<void(presmode)> roguevizslide(char c, const T& t, const U& f = [] (presmode mode) {}) {
|
||||
template<class T, class U> function<void(presmode)> roguevizslide(char c, const T& t, const U& f) {
|
||||
return [c,t,f] (presmode mode) {
|
||||
f(mode);
|
||||
patterns::canvasback = 0x101010;
|
||||
@ -163,6 +163,8 @@ template<class T, class U> function<void(presmode)> roguevizslide(char c, const
|
||||
};
|
||||
}
|
||||
|
||||
template<class T> function<void(presmode)> roguevizslide(char c, const T& t) { return roguevizslide(c, t, [] (presmode mode) {}); }
|
||||
|
||||
template<class T, class U>
|
||||
function<void(presmode)> roguevizslide_action(char c, const T& t, const U& act) {
|
||||
return [c,t,act] (presmode mode) {
|
||||
|
Loading…
Reference in New Issue
Block a user