Loading

Paste #pwmvwgley

  1. Index: src/engine.cpp
  2. ===================================================================
  3. --- src/engine.cpp  (revision 27595)
  4. +++ src/engine.cpp  (working copy)
  5. @@ -902,7 +902,7 @@
  6.  CommandCost CmdWantEnginePreview(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
  7.  {
  8.     Engine *e = Engine::GetIfValid(p1);
  9. -   if (e == NULL || e->preview_company != _current_company) return CMD_ERROR;
  10. +   if (e == NULL || !(e->flags & ENGINE_EXCLUSIVE_PREVIEW) || e->preview_company != _current_company) return CMD_ERROR;
  11.  
  12.     if (flags & DC_EXEC) AcceptEnginePreview(p1, _current_company);
  13.  
  14.  

Comments