MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetCallerGRFID

Method SetCallerGRFID

src/newgrf_debug_gui.cpp:287–291  ·  view source on GitHub ↗

* Set the GRFID of the item opening this window. * @param grfid GRFID of the item opening this window, or 0 if not opened by other window. */

Source from the content-addressed store, hash-verified

285 * @param grfid GRFID of the item opening this window, or 0 if not opened by other window.
286 */
287 void SetCallerGRFID(uint32_t grfid)
288 {
289 this->caller_grfid = grfid;
290 this->SetDirty();
291 }
292
293 /**
294 * Check whether this feature has chain index, i.e. refers to ground vehicles.

Callers 1

ShowNewGRFInspectWindowFunction · 0.80

Calls 1

SetDirtyMethod · 0.45

Tested by

no test coverage detected