separated cgi_string() from check_cgi()

This commit is contained in:
Zeno Rogue 2020-05-15 11:41:30 +02:00
parent 711b9d37de
commit b2d0980091
1 changed files with 7 additions and 1 deletions

View File

@ -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;