mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 11:54:48 +00:00
separated cgi_string() from check_cgi()
This commit is contained in:
parent
711b9d37de
commit
b2d0980091
@ -927,7 +927,7 @@ EX int last_texture_step;
|
||||
|
||||
int ntimestamp;
|
||||
|
||||
EX void check_cgi() {
|
||||
EX string cgi_string() {
|
||||
string s;
|
||||
auto V = [&] (string a, string b) { s += a; s += ": "; s += b; s += "; "; };
|
||||
V("GEO", its(int(geometry)));
|
||||
@ -977,6 +977,12 @@ EX void check_cgi() {
|
||||
|
||||
V("LQ", its(vid.linequality));
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
EX void check_cgi() {
|
||||
string s = cgi_string();
|
||||
|
||||
cgip = &cgis[s];
|
||||
cgi.timestamp = ++ntimestamp;
|
||||
if(hybri) hybrid::underlying_cgip->timestamp = ntimestamp;
|
||||
|
Loading…
Reference in New Issue
Block a user