mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-16 19:18:05 +00:00
parser/texture:: txp function
This commit is contained in:
6
util.cpp
6
util.cpp
@@ -219,6 +219,12 @@ cld exp_parser::parse(int prio) {
|
||||
dynamicval<cld> d(extra_params[name], val);
|
||||
return parsepar();
|
||||
}
|
||||
#if CAP_TEXTURE
|
||||
else if(eat("txp(")) {
|
||||
cld val = parsepar();
|
||||
return texture::get_txp(real(val), imag(val), int(real(extra_params["p"]) + .5)-1);
|
||||
}
|
||||
#endif
|
||||
else if(next() == '(') at++, res = parsepar();
|
||||
else {
|
||||
string number;
|
||||
|
||||
Reference in New Issue
Block a user