mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-10 02:14:06 +00:00
texture:: commandline remapping option -txremap
This commit is contained in:
parent
925a3af3ad
commit
a3479ae830
@ -1419,6 +1419,8 @@ void texture_config::remap(eTextureState old_tstate, eTextureState old_tstate_ma
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
eTextureState old_tstate_cl, old_tstate_max_cl;
|
||||||
|
|
||||||
int textureArgs() {
|
int textureArgs() {
|
||||||
using namespace arg;
|
using namespace arg;
|
||||||
|
|
||||||
@ -1442,6 +1444,12 @@ int textureArgs() {
|
|||||||
else if(argis("-txcl")) {
|
else if(argis("-txcl")) {
|
||||||
PHASE(3); drawscreen();
|
PHASE(3); drawscreen();
|
||||||
config.load();
|
config.load();
|
||||||
|
old_tstate_cl = texture::config.tstate;
|
||||||
|
old_tstate_max_cl = texture::config.tstate_max;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if(argis("-txremap")) {
|
||||||
|
texture::config.remap(old_tstate_cl, old_tstate_max_cl);
|
||||||
}
|
}
|
||||||
|
|
||||||
else return 1;
|
else return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user