mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-07 22:50:10 +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;
|
int ntimestamp;
|
||||||
|
|
||||||
EX void check_cgi() {
|
EX string cgi_string() {
|
||||||
string s;
|
string s;
|
||||||
auto V = [&] (string a, string b) { s += a; s += ": "; s += b; s += "; "; };
|
auto V = [&] (string a, string b) { s += a; s += ": "; s += b; s += "; "; };
|
||||||
V("GEO", its(int(geometry)));
|
V("GEO", its(int(geometry)));
|
||||||
@ -977,6 +977,12 @@ EX void check_cgi() {
|
|||||||
|
|
||||||
V("LQ", its(vid.linequality));
|
V("LQ", its(vid.linequality));
|
||||||
|
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
|
||||||
|
EX void check_cgi() {
|
||||||
|
string s = cgi_string();
|
||||||
|
|
||||||
cgip = &cgis[s];
|
cgip = &cgis[s];
|
||||||
cgi.timestamp = ++ntimestamp;
|
cgi.timestamp = ++ntimestamp;
|
||||||
if(hybri) hybrid::underlying_cgip->timestamp = ntimestamp;
|
if(hybri) hybrid::underlying_cgip->timestamp = ntimestamp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user