mirror of https://github.com/OpenTTD/OpenTTD
(svn r16593) -Cleanup: realign the TTDP flags table.
parent
a497e3ff4a
commit
1359471d3f
120
src/newgrf.cpp
120
src/newgrf.cpp
|
@ -5295,84 +5295,84 @@ static void GRFUnsafe(byte *buf, size_t len)
|
||||||
static void InitializeGRFSpecial()
|
static void InitializeGRFSpecial()
|
||||||
{
|
{
|
||||||
_ttdpatch_flags[0] = ((_settings_game.station.always_small_airport ? 1 : 0) << 0x0C) // keepsmallairport
|
_ttdpatch_flags[0] = ((_settings_game.station.always_small_airport ? 1 : 0) << 0x0C) // keepsmallairport
|
||||||
| (1 << 0x0D) // newairports
|
| (1 << 0x0D) // newairports
|
||||||
| (1 << 0x0E) // largestations
|
| (1 << 0x0E) // largestations
|
||||||
| ((_settings_game.construction.longbridges ? 1 : 0) << 0x0F) // longbridges
|
| ((_settings_game.construction.longbridges ? 1 : 0) << 0x0F) // longbridges
|
||||||
| (0 << 0x10) // loadtime
|
| (0 << 0x10) // loadtime
|
||||||
| (1 << 0x12) // presignals
|
| (1 << 0x12) // presignals
|
||||||
| (1 << 0x13) // extpresignals
|
| (1 << 0x13) // extpresignals
|
||||||
| ((_settings_game.vehicle.never_expire_vehicles ? 1 : 0) << 0x16) // enginespersist
|
| ((_settings_game.vehicle.never_expire_vehicles ? 1 : 0) << 0x16) // enginespersist
|
||||||
| (1 << 0x1B) // multihead
|
| (1 << 0x1B) // multihead
|
||||||
| (1 << 0x1D) // lowmemory
|
| (1 << 0x1D) // lowmemory
|
||||||
| (1 << 0x1E); // generalfixes
|
| (1 << 0x1E); // generalfixes
|
||||||
|
|
||||||
_ttdpatch_flags[1] = ((_settings_game.economy.station_noise_level ? 1 : 0) << 0x07) // moreairports - based on units of noise
|
_ttdpatch_flags[1] = ((_settings_game.economy.station_noise_level ? 1 : 0) << 0x07) // moreairports - based on units of noise
|
||||||
| ((_settings_game.vehicle.mammoth_trains ? 1 : 0) << 0x08) // mammothtrains
|
| ((_settings_game.vehicle.mammoth_trains ? 1 : 0) << 0x08) // mammothtrains
|
||||||
| (1 << 0x09) // trainrefit
|
| (1 << 0x09) // trainrefit
|
||||||
| (0 << 0x0B) // subsidiaries
|
| (0 << 0x0B) // subsidiaries
|
||||||
| ((_settings_game.order.gradual_loading ? 1 : 0) << 0x0C) // gradualloading
|
| ((_settings_game.order.gradual_loading ? 1 : 0) << 0x0C) // gradualloading
|
||||||
| (1 << 0x12) // unifiedmaglevmode - set bit 0 mode. Not revelant to OTTD
|
| (1 << 0x12) // unifiedmaglevmode - set bit 0 mode. Not revelant to OTTD
|
||||||
| (1 << 0x13) // unifiedmaglevmode - set bit 1 mode
|
| (1 << 0x13) // unifiedmaglevmode - set bit 1 mode
|
||||||
| (1 << 0x14) // bridgespeedlimits
|
| (1 << 0x14) // bridgespeedlimits
|
||||||
| (1 << 0x16) // eternalgame
|
| (1 << 0x16) // eternalgame
|
||||||
| (1 << 0x17) // newtrains
|
| (1 << 0x17) // newtrains
|
||||||
| (1 << 0x18) // newrvs
|
| (1 << 0x18) // newrvs
|
||||||
| (1 << 0x19) // newships
|
| (1 << 0x19) // newships
|
||||||
| (1 << 0x1A) // newplanes
|
| (1 << 0x1A) // newplanes
|
||||||
| ((_settings_game.construction.signal_side ? 1 : 0) << 0x1B) // signalsontrafficside
|
| ((_settings_game.construction.signal_side ? 1 : 0) << 0x1B) // signalsontrafficside
|
||||||
| ((_settings_game.vehicle.disable_elrails ? 0 : 1) << 0x1C); // electrifiedrailway
|
| ((_settings_game.vehicle.disable_elrails ? 0 : 1) << 0x1C); // electrifiedrailway
|
||||||
|
|
||||||
_ttdpatch_flags[2] = (1 << 0x01) // loadallgraphics - obsolote
|
_ttdpatch_flags[2] = (1 << 0x01) // loadallgraphics - obsolote
|
||||||
| (1 << 0x03) // semaphores
|
| (1 << 0x03) // semaphores
|
||||||
| (0 << 0x0B) // enhancedgui
|
| (0 << 0x0B) // enhancedgui
|
||||||
| (0 << 0x0C) // newagerating
|
| (0 << 0x0C) // newagerating
|
||||||
| ((_settings_game.construction.build_on_slopes ? 1 : 0) << 0x0D) // buildonslopes
|
| ((_settings_game.construction.build_on_slopes ? 1 : 0) << 0x0D) // buildonslopes
|
||||||
| (1 << 0x0E) // fullloadany
|
| (1 << 0x0E) // fullloadany
|
||||||
| (1 << 0x0F) // planespeed
|
| (1 << 0x0F) // planespeed
|
||||||
| (0 << 0x10) // moreindustriesperclimate - obsolete
|
| (0 << 0x10) // moreindustriesperclimate - obsolete
|
||||||
| (0 << 0x11) // moretoylandfeatures
|
| (0 << 0x11) // moretoylandfeatures
|
||||||
| (1 << 0x12) // newstations
|
| (1 << 0x12) // newstations
|
||||||
| (1 << 0x13) // tracktypecostdiff
|
| (1 << 0x13) // tracktypecostdiff
|
||||||
| (1 << 0x14) // manualconvert
|
| (1 << 0x14) // manualconvert
|
||||||
| ((_settings_game.construction.build_on_slopes ? 1 : 0) << 0x15) // buildoncoasts
|
| ((_settings_game.construction.build_on_slopes ? 1 : 0) << 0x15) // buildoncoasts
|
||||||
| (1 << 0x16) // canals
|
| (1 << 0x16) // canals
|
||||||
| (1 << 0x17) // newstartyear
|
| (1 << 0x17) // newstartyear
|
||||||
| ((_settings_game.vehicle.freight_trains > 1 ? 1 : 0) << 0x18) // freighttrains
|
| ((_settings_game.vehicle.freight_trains > 1 ? 1 : 0) << 0x18) // freighttrains
|
||||||
| (1 << 0x19) // newhouses
|
| (1 << 0x19) // newhouses
|
||||||
| (1 << 0x1A) // newbridges
|
| (1 << 0x1A) // newbridges
|
||||||
| (1 << 0x1B) // newtownnames
|
| (1 << 0x1B) // newtownnames
|
||||||
| (1 << 0x1C) // moreanimation
|
| (1 << 0x1C) // moreanimation
|
||||||
| ((_settings_game.vehicle.wagon_speed_limits ? 1 : 0) << 0x1D) // wagonspeedlimits
|
| ((_settings_game.vehicle.wagon_speed_limits ? 1 : 0) << 0x1D) // wagonspeedlimits
|
||||||
| (1 << 0x1E) // newshistory
|
| (1 << 0x1E) // newshistory
|
||||||
| (0 << 0x1F); // custombridgeheads
|
| (0 << 0x1F); // custombridgeheads
|
||||||
|
|
||||||
_ttdpatch_flags[3] = (0 << 0x00) // newcargodistribution
|
_ttdpatch_flags[3] = (0 << 0x00) // newcargodistribution
|
||||||
| (1 << 0x01) // windowsnap
|
| (1 << 0x01) // windowsnap
|
||||||
| ((_settings_game.economy.allow_town_roads || _generating_world ? 0 : 1) << 0x02) // townbuildnoroad
|
| ((_settings_game.economy.allow_town_roads || _generating_world ? 0 : 1) << 0x02) // townbuildnoroad
|
||||||
| (1 << 0x03) // pathbasedsignalling
|
| (1 << 0x03) // pathbasedsignalling
|
||||||
| (0 << 0x04) // aichoosechance
|
| (0 << 0x04) // aichoosechance
|
||||||
| (1 << 0x05) // resolutionwidth
|
| (1 << 0x05) // resolutionwidth
|
||||||
| (1 << 0x06) // resolutionheight
|
| (1 << 0x06) // resolutionheight
|
||||||
| (1 << 0x07) // newindustries
|
| (1 << 0x07) // newindustries
|
||||||
| ((_settings_game.order.improved_load ? 1 : 0) << 0x08) // fifoloading
|
| ((_settings_game.order.improved_load ? 1 : 0) << 0x08) // fifoloading
|
||||||
| (0 << 0x09) // townroadbranchprob
|
| (0 << 0x09) // townroadbranchprob
|
||||||
| (0 << 0x0A) // tempsnowline
|
| (0 << 0x0A) // tempsnowline
|
||||||
| (1 << 0x0B) // newcargo
|
| (1 << 0x0B) // newcargo
|
||||||
| (1 << 0x0C) // enhancemultiplayer
|
| (1 << 0x0C) // enhancemultiplayer
|
||||||
| (1 << 0x0D) // onewayroads
|
| (1 << 0x0D) // onewayroads
|
||||||
| ((_settings_game.station.nonuniform_stations ? 1 : 0) << 0x0E) // irregularstations
|
| ((_settings_game.station.nonuniform_stations ? 1 : 0) << 0x0E) // irregularstations
|
||||||
| (1 << 0x0F) // statistics
|
| (1 << 0x0F) // statistics
|
||||||
| (1 << 0x10) // newsounds
|
| (1 << 0x10) // newsounds
|
||||||
| (1 << 0x11) // autoreplace
|
| (1 << 0x11) // autoreplace
|
||||||
| (1 << 0x12) // autoslope
|
| (1 << 0x12) // autoslope
|
||||||
| (0 << 0x13) // followvehicle
|
| (0 << 0x13) // followvehicle
|
||||||
| (1 << 0x14) // trams
|
| (1 << 0x14) // trams
|
||||||
| (0 << 0x15) // enhancetunnels
|
| (0 << 0x15) // enhancetunnels
|
||||||
| (1 << 0x16) // shortrvs
|
| (1 << 0x16) // shortrvs
|
||||||
| (1 << 0x17) // articulatedrvs
|
| (1 << 0x17) // articulatedrvs
|
||||||
| ((_settings_game.vehicle.dynamic_engines ? 1 : 0) << 0x18) // dynamic engines
|
| ((_settings_game.vehicle.dynamic_engines ? 1 : 0) << 0x18) // dynamic engines
|
||||||
| (1 << 0x1E) // variablerunningcosts
|
| (1 << 0x1E) // variablerunningcosts
|
||||||
| (1 << 0x1F); // any switch is on
|
| (1 << 0x1F); // any switch is on
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ResetCustomStations()
|
static void ResetCustomStations()
|
||||||
|
|
Loading…
Reference in New Issue