Codechange: Rename _cur to _cur_gps.

This commit is contained in:
frosch
2025-04-09 20:13:28 +02:00
committed by frosch
parent e89be12ebb
commit 1cfad1474a
39 changed files with 402 additions and 402 deletions

View File

@@ -30,7 +30,7 @@ static void SafeGRFInhibit(ByteReader &buf)
uint32_t grfid = buf.ReadDWord();
/* GRF is unsafe it if tries to deactivate other GRFs */
if (grfid != _cur.grfconfig->ident.grfid) {
if (grfid != _cur_gps.grfconfig->ident.grfid) {
GRFUnsafe(buf);
return;
}
@@ -52,10 +52,10 @@ static void GRFInhibit(ByteReader &buf)
GRFConfig *file = GetGRFConfig(grfid);
/* Unset activation flag */
if (file != nullptr && file != _cur.grfconfig) {
if (file != nullptr && file != _cur_gps.grfconfig) {
GrfMsg(2, "GRFInhibit: Deactivating file '{}'", file->filename);
GRFError *error = DisableGrf(STR_NEWGRF_ERROR_FORCEFULLY_DISABLED, file);
error->data = _cur.grfconfig->GetName();
error->data = _cur_gps.grfconfig->GetName();
}
}
}