Skip to content

Instantly share code, notes, and snippets.

// --------------------- crane rails --------------------- //
-1 * 0 00 04 \b4 \b1 TILE_HARBOUR_CRANE_RAILS_2
08 "CHPT" // Class ID - groups stations in menu
1A 02 // 2 tiles
//Basic layout
43
\dx000003F4 \wx0002 00 // custom ground sprite
\dx80008431 \wx0000
00 00 80 // combine with bounding box of ground sprite
// --------------------- crane rails --------------------- //
-1 * 0 00 04 \b4 \b1 TILE_HARBOUR_CRANE_RAILS_2
08 "CHPT" // Class ID - groups stations in menu
1A 02 // 2 tiles
//Basic layout
43
\dx000003F4 \wx0002 00 // custom ground sprite
\dx80008431 \wx0000
00 00 00 // x/y/z offset = extra groundsprite
-1 * 0 00 04 \b5 \b1 TILE_HARBOUR_CRANES_1
08 "CHPT" // Class ID - groups stations in menu
1A 02 // 2 tiles
//Basic layout
42
\d1420 \wx0002 00 // custom ground sprite
\dx8000842D \wx0000
00 00 00 // x/y/z offset = extra groundsprite
10 10 \b36 // x/y/z extend
\dx8000842D \wx0000
// --------------------- crane --------------------- //
-1 * 0 00 04 \b5 \b1 TILE_HARBOUR_CRANES_1
08 "CHPT" // Class ID - groups stations in menu
1A 02 // 2 tiles
//Basic layout
41
\d1420 \wx0002 00 // custom ground sprite
\dx8000842D \wx0000
00 00 00 // x/y/z offset = extra groundsprite
switch (FEAT_TRAINS, SELF, growler_switch_graphics_check_2cc_unreversed_unflipped, company_colour2) {
COLOUR_GREY: return growler_ss_unreversed_unflipped_0;
COLOUR_BROWN: return growler_ss_unreversed_unflipped_0;
COLOUR_YELLOW: return growler_ss_unreversed_unflipped_0;
COLOUR_ORANGE: return growler_ss_unreversed_unflipped_0;
COLOUR_WHITE: return growler_ss_unreversed_unflipped_0;
return growler_ss_unreversed_unflipped_1;
}
switch (FEAT_TRAINS, SELF, growler_switch_graphics_livery_unreversed_unflipped, company_colour1) {
COLOUR_GREY: return growler_switch_graphics_check_2cc_unreversed_unflipped;
**Livery Spec**
--
*Feature 14 / Liveries*
Action 0 props
* ID
* Text ID
/** Switch to full screen mode on OSX 10.7
* @return Whether we switched to full screen
*/
bool WindowQuartzSubdriver::ToggleFullscreen(bool fullscreen)
{
if (this->IsFullscreen() == fullscreen) return true;
if ([ this->window respondsToSelector:@selector(toggleFullScreen:) ]) {
if (fullscreen) {
[ NSApp setPresentationOptions:(NSApplicationPresentationHideMenuBar | NSApplicationPresentationHideDock) ];
if (rti->curve_speed == 16) {
return absolute_max_speed;
} else {
max_speed = 10;
}

Locating industry types to make a nice map

Goal

  • distribute different kinds of industry to different parts of map
  • e.g.
    • 'farming region'
    • 'steel industry region'
    • 'mining region'

Locating industry types to make a nice map

Goal

  • distribute different kinds of industry to different parts of map
  • e.g.
    • 'farming region'
    • 'steel industry region'
    • 'mining region'

How much possible currently?