Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation:

### - s -

- SafeSaveOrLoad() : openttd.cpp
- SanitizeFilename() : fileio.cpp , fileio_func.h
- SanitizeSpriteOffset() : newgrf.cpp
- save : saveload.cpp
- Save_ANIT() : animated_tile_sl.cpp
- SAVE_DIR : fileio_type.h
- Save_ECMY() : economy_sl.cpp
- Save_SIGN() : signs_sl.cpp
- Save_VEHS() : vehicle_sl.cpp
- SaveFileDone() : saveload.cpp
- SaveFileError() : saveload.cpp
- SaveFileStart() : saveload.cpp
- SaveFileToDisk() : saveload.cpp
- SAVEGAME_VERSION : gamelog.cpp
- SavegameType : saveload.h
- SaveHighScoreValue() : highscore.cpp , highscore.h
- SaveLoad_CAPR() : economy_sl.cpp
- SaveLoad_PRIC() : economy_sl.cpp
- SaveOrLoad() : saveload.cpp , saveload.h
- SaveOrLoadResult : saveload.h
- SaveRandomSeeds() : random_func.hpp
- SaveSettings() : settings.cpp
- SaveSettingsGlobList() : settings.cpp
- SaveToConfig() : settings.cpp , settings_func.h
- SaveToHighScore() : highscore.cpp , highscore.h
- SaveVersionInConfig() : settings.cpp
- SB() : bitmath_func.hpp
- SBI_NEWS_DELETED : statusbar_gui.h
- SBI_SAVELOAD_FINISH : statusbar_gui.h
- SBI_SAVELOAD_START : statusbar_gui.h
- SBI_SHOW_REMINDER : statusbar_gui.h
- SBI_SHOW_TICKER : statusbar_gui.h
- ScaleAllCompanyManagerFaceBits() : company_manager_face.h
- ScaleByMapSize() : map.cpp , map_func.h
- ScaleByMapSize1D() : map.cpp , map_func.h
- ScaleByZoom() : zoom_func.h
- ScaleByZoomLower() : zoom_func.h
- ScaleCompanyManagerFaceValue() : company_manager_face.h
- ScanPath() : fileio.cpp
- ScanTar() : fileio.cpp
- SCC_BIGFONT : control_codes.h
- SCC_NEWGRF_DISCARD_WORD : control_codes.h
- SCC_NEWGRF_FIRST : control_codes.h
- SCC_NEWGRF_PRINT_DATE : control_codes.h
- SCC_NEWGRF_PRINT_DWORD : control_codes.h
- SCC_NEWGRF_PRINT_DWORD_CURRENCY : control_codes.h
- SCC_NEWGRF_PRINT_HEX_BYTE : control_codes.h
- SCC_NEWGRF_PRINT_HEX_DWORD : control_codes.h
- SCC_NEWGRF_PRINT_HEX_WORD : control_codes.h
- SCC_NEWGRF_PRINT_MONTH_YEAR : control_codes.h
- SCC_NEWGRF_PRINT_QWORD_CURRENCY : control_codes.h
- SCC_NEWGRF_PRINT_SIGNED_BYTE : control_codes.h
- SCC_NEWGRF_PRINT_SIGNED_WORD : control_codes.h
- SCC_NEWGRF_PRINT_STRING_ID : control_codes.h
- SCC_NEWGRF_PRINT_UNSIGNED_WORD : control_codes.h
- SCC_NEWGRF_PRINT_WORD_LITRES : control_codes.h
- SCC_NEWGRF_PRINT_WORD_SPEED : control_codes.h
- SCC_NEWGRF_PUSH_WORD : control_codes.h
- SCC_NEWGRF_ROTATE_TOP_4_WORDS : control_codes.h
- SCC_NEWGRF_UNPRINT : control_codes.h
- SCC_TINYFONT : control_codes.h
- SCENARIO_DIR : fileio_type.h
- SCORE_END : economy_type.h
- SCORE_MAX : economy_type.h
- SCORE_TOTAL : economy_type.h
- ScoreID : economy_type.h
- scrollamt : window.cpp
- ScrollbarClickHandler() : widget.cpp , window_gui.h
- SDT_BOOLX : settings_internal.h
- SDT_INTLIST : settings_internal.h
- SDT_MANYOFMANY : settings_internal.h
- SDT_NUMX : settings_internal.h
- SDT_ONEOFMANY : settings_internal.h
- SDT_STRING : settings_internal.h
- SearchLumberMillTrees() : industry_cmd.cpp
- SearchNearbyHouseClass() : newgrf_house.cpp
- SearchNearbyHouseGRFID() : newgrf_house.cpp
- SearchNearbyHouseID() : newgrf_house.cpp
- Searchpath : fileio_type.h
- SearchTileForStatue() : town_cmd.cpp
- SEF_BUTTONS_MASK : settings_gui.cpp
- SEF_KIND_MASK : settings_gui.cpp
- SEF_LAST_FIELD : settings_gui.cpp
- SEF_LEFT_DEPRESSED : settings_gui.cpp
- SEF_RIGHT_DEPRESSED : settings_gui.cpp
- SEF_SETTING_KIND : settings_gui.cpp
- SEF_SUBTREE_KIND : settings_gui.cpp
- SEND_MTU : config.h
- SendAllVehiclesToDepot() : vehicle.cpp , vehicle_func.h
- seprintf() : string.cpp , string_func.h
- SetArticulatedPart() : train.h
- SetAsyncSaveFinish() : saveload.cpp
- SetBit() : bitmath_func.hpp
- SETBITS : bitmath_func.hpp
- SetBridgeMiddle() : bridge_map.h
- SetCachedEngineCounts() : engine.cpp , engine_func.h
- SetClearCounter() : clear_map.h
- SetClearGroundDensity() : clear_map.h
- SetColourRemap() : gfx.cpp
- SetCompanyHQSection() : unmovable_map.h
- SetCompanyHQSize() : unmovable_map.h
- SetCompanyManagerFaceBits() : company_manager_face.h
- SetCrossingReservation() : road_map.h
- SetCurrentGrfLangID() : newgrf_text.cpp , newgrf_text.h
- SetCustomStationSpec() : newgrf_station.cpp , newgrf_station.h
- SetDefaultRailGui() : rail_gui.cpp
- SetDepotWaypointReservation() : rail_map.h
- SetDirtyBlocks() : gfx.cpp , gfx_func.h
- SetDisallowedRoadDirections() : road_map.h
- SetDParamStr() : strings.cpp , strings_func.h
- SetEngineGRF() : newgrf_engine.cpp
- SetFenceSE() : clear_map.h
- SetFenceSW() : clear_map.h
- SetFieldType() : clear_map.h
- SetFocusedWindow() : window.cpp , window_gui.h
- SetFreeWagon() : train.h
- SetFrontEngine() : train.h
- SetGeneratingWorldPaintStatus() : genworld.cpp , genworld.h
- SetGeneratingWorldProgress() : genworld.h , genworld_gui.cpp
- SetGraphicsSet() : gfxinit.cpp , gfxinit.h
- SetHasSignals() : rail_map.h
- SetHouseAnimationFrame() : town_map.h
- SetHouseCompleted() : town_map.h
- SetHouseProcessingTime() : town_map.h
- SetHouseRandomBits() : town_map.h
- SetHouseTriggers() : town_map.h
- SetHouseType() : town_map.h
- SetHScrollCount() : window.cpp , window_gui.h
- SetIndustryAnimationLoop() : industry_map.h
- SetIndustryAnimationState() : industry_map.h
- SetIndustryCompleted() : industry_map.h
- SetIndustryConstructionCounter() : industry_map.h
- SetIndustryConstructionStage() : industry_map.h
- SetIndustryGfx() : industry_map.h
- SetIndustryIndexOfField() : clear_map.h
- SetIndustryRandomBits() : industry_map.h
- SetIndustryTriggers() : industry_map.h
- SetLiftDestination() : town_map.h
- SetLiftPosition() : town_map.h
- SetLocalCompany() : company_cmd.cpp , company_func.h
- SetMIDITypeIfNeeded() : qtmidi.cpp
- SetMultiheaded() : train.h
- SetPresentSignals() : rail_map.h
- SetPriceBaseMultiplier() : economy.cpp , economy_func.h
- SetRailType() : rail_map.h
- SetRailwayStationPlatformReservation() : pbs.cpp , pbs.h
- SetRailwayStationReservation() : station_map.h
- SetSaveLoadError() : saveload.cpp
- SetSelectionTilesDirty() : viewport.cpp
- SetSettingValue() : settings.cpp , settings_internal.h
- SetSignalsOnBothDir() : signal.cpp , signal_func.h
- SetSignalStateByTrackdir() : rail_map.h
- SetSignalStates() : rail_map.h
- SetSnowLine() : landscape.cpp , landscape.h
- SetStationClassName() : newgrf_station.cpp , newgrf_station.h
- SetTileHeight() : tile_map.h
- SetTileOwner() : tile_map.h
- SetTileType() : tile_map.h
- SETTING_HEIGHT : settings_gui.cpp
- SettingDescTypeLong : settings_internal.h
- SettingEntryFlags : settings_gui.cpp
- SettingGuiFlagLong : settings_internal.h
- SettingsDisableElrail() : elrail.cpp , elrail_func.h
- SETTINGSEL_OPTIONSPANEL : settings_gui.cpp
- SETTINGSEL_RESIZE : settings_gui.cpp
- SETTINGSEL_SCROLLBAR : settings_gui.cpp
- SetTownIndex() : town_map.h
- SetTrackBits() : rail_map.h
- SetTrackReservation() : rail_map.h
- SetTrainEngine() : train.h
- SetTrainGroupID() : group.h , group_cmd.cpp
- SetTrainWagon() : train.h
- SetTreeCounter() : tree_map.h
- SetTreeGroundDensity() : tree_map.h
- SetTreeGrowth() : tree_map.h
- SetTropicZone() : tile_map.h
- SetTunnelBridgeReservation() : tunnelbridge_map.h
- SetTunnelBridgeSnowOrDesert() : tunnelbridge_map.h
- SetUnicodeGlyph() : fontcache.cpp , fontcache.h
- SetupRailToolbar() : rail_gui.cpp
- SetVScroll2Count() : window.cpp , window_gui.h
- SetVScrollCount() : window.cpp , window_gui.h
- SetWaterClassDependingOnSurroundings() : afterload.cpp
- SetWindowDirty() : window.cpp , window_func.h
- SF_EXIT : signal.cpp
- SF_EXIT2 : signal.cpp
- SF_FULL : signal.cpp
- SF_GREEN : signal.cpp
- SF_GREEN2 : signal.cpp
- SF_PBS : signal.cpp
- SF_TRAIN : signal.cpp
- SGF_0ISDISABLED : settings_internal.h
- SGF_CURRENCY : settings_internal.h
- SGF_MULTISTRING : settings_internal.h
- SGF_NETWORK_ONLY : settings_internal.h
- SGF_NEWGAME_ONLY : settings_internal.h
- SGF_NO_NETWORK : settings_internal.h
- SGF_NOCOMMA : settings_internal.h
- SGT_INVALID : saveload.h
- SGT_OTTD : saveload.h
- SGT_TTD : saveload.h
- SGT_TTDP1 : saveload.h
- SGT_TTDP2 : saveload.h
- SGT_TTO : saveload.h
- ShipVehicleChangeInfo() : newgrf.cpp
- SHORE_REPLACE_ACTION_5 : newgrf.h
- SHORE_REPLACE_ACTION_A : newgrf.h
- SHORE_REPLACE_NONE : newgrf.h
- SHORE_REPLACE_ONLY_NEW : newgrf.h
- ShoreReplacement : newgrf.h
- ShowAdditionalText() : vehicle_gui.cpp , vehicle_gui.h
- ShowBuildBridgeWindow() : bridge_gui.cpp , gui.h
- ShowBuildRailToolbar() : rail_gui.cpp , rail_gui.h
- ShowCompanyStations() : company_gui.h , station_gui.cpp
- ShowDepotWindow() : depot_func.h , depot_gui.cpp
- ShowDropDownList() : dropdown.cpp , dropdown_type.h
- ShowEndGameChart() : date.cpp , highscore_gui.cpp
- ShowGenerateWorldProgress() : genworld.h , genworld_gui.cpp
- ShowGroupActionDropdown() : group_gui.cpp
- ShowHelp() : openttd.cpp
- ShowHighscoreTable() : highscore.h , highscore_gui.cpp
- ShowInfoF() : openttd.cpp , debug.h
- ShowLastNewsMessage() : news_gui.cpp , news_gui.h
- ShowMeasurementTooltips() : viewport.cpp
- ShowMessageHistory() : news_gui.h , news_gui.cpp
- ShowNewGRFSettings() : newgrf_config.h , newgrf_gui.cpp
- ShowNewsMessage() : news_gui.cpp
- ShowNewspaper() : news_gui.cpp
- ShowOnScreenKeyboard() : osk_gui.cpp , querystring_gui.h
- ShowQuery() : textbuf_gui.h , misc_gui.cpp
- ShowQueryString() : misc_gui.cpp , textbuf_gui.h
- ShowRefitOptionsList() : vehicle_gui.h , vehicle_gui.cpp
- ShowRejectOrAcceptNews() : station_cmd.cpp
- ShowSelectStationIfNeeded() : station_gui.cpp , station_gui.h
- ShowSignalBuilder() : rail_gui.cpp
- ShowStationBuilder() : rail_gui.cpp
- ShowStationViewWindow() : station_func.h , station_gui.cpp
- ShowTicker() : news_gui.cpp
- ShowTownnameDropdown() : settings_gui.cpp
- ShowVehicleDetailsWindow() : vehicle_gui.cpp
- ShowVehicleRefitWindow() : vehicle_gui.h , vehicle_gui.cpp
- ShowVehicleViewWindow() : vehicle_gui.cpp , vehicle_gui.h
- ShutdownGame() : openttd.cpp
- SIG_ELECTRIC : signal_type.h
- SIG_GLOB_SIZE : signal.cpp
- SIG_GLOB_UPDATE : signal.cpp
- SIG_SEMAPHORE : signal_type.h
- SIG_TBD_SIZE : signal.cpp
- SIG_TBU_SIZE : signal.cpp
- SigFlags : signal.cpp
- SIGNAL_STATE_GREEN : rail_map.h
- SIGNAL_STATE_RED : rail_map.h
- signal_type_names : dbg_helpers.cpp
- SignalAgainstTrackdir() : signal_func.h
- SignalAlongTrackdir() : signal_func.h
- SignalOnTrack() : signal_func.h
- SignalState : rail_map.h
- SignalType : signal_type.h
- SignalVariant : signal_type.h
- SignID : ai_types.hpp
- SIGSEG_FREE : signal_func.h
- SIGSEG_FULL : signal_func.h
- SIGSEG_PBS : signal_func.h
- SigSegState : signal_func.h
- SIGTYPE_COMBO : signal_type.h
- SIGTYPE_ENTRY : signal_type.h
- SIGTYPE_EXIT : signal_type.h
- SIGTYPE_NORMAL : signal_type.h
- SIGTYPE_PBS : signal_type.h
- SIGTYPE_PBS_ONEWAY : signal_type.h
- SimplifyFileName() : fileio.cpp
- SimulateDrag() : ai_rail.cpp
- SkipSpriteData() : sprite.h , spritecache.cpp
- SL_ERROR : saveload.h
- SL_OK : saveload.h
- SL_REINIT : saveload.h
- SlArray() : saveload.h , saveload.cpp
- SlAutolength() : saveload.cpp , saveload.h
- SlCalcArrayLen() : saveload.cpp
- SlCalcConvFileLen() : saveload.cpp
- SlCalcConvMemLen() : saveload.cpp
- SlCalcListLen() : saveload.cpp
- SlCalcNetStringLen() : saveload.cpp
- SlCalcObjLength() : saveload.h , saveload.cpp
- SlCalcRefLen() : saveload.cpp
- SlCalcStringLen() : saveload.cpp
- SlCopyBytes() : saveload.cpp
- SLE_FILE_STRINGID : saveload.h
- SLE_VAR_NAME : saveload.h
- SLE_VAR_NULL : saveload.h
- SLE_VAR_STR : saveload.h
- SLE_VAR_STRB : saveload.h
- SLE_VAR_STRBQ : saveload.h
- SLE_VAR_STRQ : saveload.h
- SlError() : saveload.cpp
- SLF_CONFIG_NO : saveload.h
- SLF_NETWORK_NO : saveload.h
- SLF_SAVE_NO : saveload.h
- SlFindChunkHandler() : saveload.cpp
- SlGetGammaLength() : saveload.cpp
- SlGlobList() : saveload.cpp , saveload.h
- SlIsObjectCurrentlyValid() : saveload.h
- SlIsObjectValidInSavegame() : saveload.cpp
- SlIterateArray() : saveload.h , saveload.cpp
- SlList() : saveload.cpp
- SlLoadChunk() : saveload.cpp
- SlLoadChunks() : saveload.cpp
- SlObject() : saveload.cpp , saveload.h
- Slope : slope_type.h
- SLOPE_E : slope_type.h
- SLOPE_ELEVATED : slope_type.h
- SLOPE_ENW : slope_type.h
- SLOPE_EW : slope_type.h
- SLOPE_FLAT : slope_type.h
- SLOPE_HALFTILE : slope_type.h
- SLOPE_HALFTILE_E : slope_type.h
- SLOPE_HALFTILE_MASK : slope_type.h
- SLOPE_HALFTILE_N : slope_type.h
- SLOPE_HALFTILE_S : slope_type.h
- SLOPE_HALFTILE_W : slope_type.h
- SLOPE_N : slope_type.h
- SLOPE_NE : slope_type.h
- SLOPE_NS : slope_type.h
- SLOPE_NW : slope_type.h
- SLOPE_NWS : slope_type.h
- SLOPE_S : slope_type.h
- SLOPE_SE : slope_type.h
- SLOPE_SEN : slope_type.h
- SLOPE_STEEP : slope_type.h
- SLOPE_STEEP_E : slope_type.h
- SLOPE_STEEP_N : slope_type.h
- SLOPE_STEEP_S : slope_type.h
- SLOPE_STEEP_W : slope_type.h
- SLOPE_SW : slope_type.h
- SLOPE_W : slope_type.h
- SLOPE_WSE : slope_type.h
- SlopeWithOneCornerRaised() : slope_func.h
- SlopeWithThreeCornersRaised() : slope_func.h
- SlReadByte() : saveload.cpp , saveload.h
- SlReadByteInternal() : saveload.cpp
- SlReadFill() : saveload.cpp
- SlReadSimpleGamma() : saveload.cpp
- SlSaveChunk() : saveload.cpp
- SlSaveChunks() : saveload.cpp
- SlSaveLoadConv() : saveload.cpp
- SlSetLength() : saveload.cpp , saveload.h
- SlSkipBytes() : saveload.cpp
- SlSkipVariableOnLoad() : saveload.cpp
- SlString() : saveload.cpp
- SlWriteByte() : saveload.cpp , saveload.h
- SlWriteByteInternal() : saveload.cpp
- SlWriteFill() : saveload.cpp
- SlWriteSimpleGamma() : saveload.cpp
- smoothed_noise() : tgp.cpp
- SndPlayScreenCoordFx() : sound.cpp
- SNOW_LINE_DAYS : landscape.h
- SNOW_LINE_MONTHS : landscape.h
- SortListFlags : sortlist_type.h
- SOUND_SLOT : fios.h
- SP_APPLICATION_BUNDLE_DIR : fileio_type.h
- SP_AUTODOWNLOAD_DIR : fileio_type.h
- SP_BINARY_DIR : fileio_type.h
- SP_INSTALLATION_DIR : fileio_type.h
- SP_PERSONAL_DIR : fileio_type.h
- SP_SHARED_DIR : fileio_type.h
- SP_WORKING_DIR : fileio_type.h
- SpecialRailFoundation() : slope_func.h
- SpecialStrings : strings_type.h
- SPEED_LIMIT_APPROACH : aircraft_cmd.cpp
- SPEED_LIMIT_BROKEN : aircraft_cmd.cpp
- SPEED_LIMIT_HOLD : aircraft_cmd.cpp
- SPEED_LIMIT_NONE : aircraft_cmd.cpp
- SPEED_LIMIT_TAXI : aircraft_cmd.cpp
- SPRITE_MASK : sprites.h
- SPRITE_MODIFIER_OPAQUE : sprites.h
- SPRITE_WIDTH : sprites.h
- SpriteID : gfx_type.h
- SpriteLayoutPaletteTransform() : newgrf_commons.h
- SpriteMasks : sprites.h
- SpriteSetup : sprites.h
- SpriteType : gfx_type.h
- SQInteger : ai_types.hpp
- SQSaveLoadType : ai_instance.cpp
- SQSL_ARRAY : ai_instance.cpp
- SQSL_ARRAY_TABLE_END : ai_instance.cpp
- SQSL_BOOL : ai_instance.cpp
- SQSL_INT : ai_instance.cpp
- SQSL_NULL : ai_instance.cpp
- SQSL_STRING : ai_instance.cpp
- SQSL_TABLE : ai_instance.cpp
- squirrel_register_global_std() : squirrel_std.hpp
- squirrel_register_std() : squirrel_std.hpp
- ST_FONT : gfx_type.h
- ST_INVALID : gfx_type.h
- ST_MAPGEN : gfx_type.h
- ST_NORMAL : gfx_type.h
- ST_RECOLOUR : gfx_type.h
- StartScenario() : openttd.cpp
- StartStopVehicle() : autoreplace_cmd.cpp
- StartupIndustryDailyChanges() : economy.cpp , economy_func.h
- StartWindowDrag() : window.cpp
- StartWindowSizing() : window.cpp
- STAT_CLASS_BEGIN : newgrf_station.h
- STAT_CLASS_DFLT : newgrf_station.h
- STAT_CLASS_MAX : newgrf_station.h
- STAT_CLASS_WAYP : newgrf_station.h
- StateGameLoop() : openttd.cpp
- StationCallbackMask : newgrf_callbacks.h
- StationClassID : newgrf_station.h
- StationID : ai_types.hpp
- StationJoinerNeeded() : station_gui.cpp
- StationsWndShowStationRating() : station_gui.cpp
- StationType : station_type.h
- StationUpdateAnimTriggers() : newgrf_station.h , newgrf_station.cpp
- StationViewWidgets : station_gui.h
- StatusBarInvalidate : statusbar_gui.h
- SteepSlope() : slope_func.h
- StopTextRefStackUsage() : newgrf_text.cpp , newgrf_text.h
- str_strip_colours() : string.cpp , string_func.h
- str_validate() : string.cpp , string_func.h
- STRAIGHT_TRACK_LENGTH : map_type.h
- strecat() : string_func.h , string.cpp
- strecpy() : string.cpp , string_func.h
- StrEmpty() : string_func.h
- string_to_val() : settings.cpp
- StringControlCode : control_codes.h
- StringID : ai_types.hpp , strings_type.h
- strtolower() : string_func.h , string.cpp
- Subdirectory : fileio_type.h
- SubsidyID : ai_types.hpp
- SVI : engines.h
- SVW_ACCEPTLIST : station_gui.h
- SVW_ACCEPTS : station_gui.h
- SVW_CAPTION : station_gui.h
- SVW_CLOSEBOX : station_gui.h
- SVW_LOCATION : station_gui.h
- SVW_PLANES : station_gui.h
- SVW_RATINGLIST : station_gui.h
- SVW_RATINGS : station_gui.h
- SVW_RENAME : station_gui.h
- SVW_RESIZE : station_gui.h
- SVW_ROADVEHS : station_gui.h
- SVW_SHIPS : station_gui.h
- SVW_TRAINS : station_gui.h
- SVW_WAITING : station_gui.h
- Swap() : math_func.hpp
- SwapDirection() : viewport.cpp
- SYNCHRONISED_CALLBACK_1B : town.h