OpenTTD Source 20260108-master-g8ba1860eaa
timer_game_economy.cpp File Reference

This file implements the timer logic for the game-economy-timer. More...

#include "../stdafx.h"
#include "../openttd.h"
#include "timer.h"
#include "timer_game_economy.h"
#include "timer_game_tick.h"
#include "../vehicle_base.h"
#include "../linkgraph/linkgraph.h"
#include "../safeguards.h"

Go to the source code of this file.

Detailed Description

This file implements the timer logic for the game-economy-timer.

Economy time is used for the regular pace of the game, including:

  • Industry and house production/consumption
  • Industry production changes, closure, and spawning
  • Town growth
  • Company age and financial statistics
  • Vehicle financial statistics
  • Vehicle aging, depreciation, reliability, and renewal
  • Payment intervals for running and maintenance costs, loan interest, etc.
  • Cargo payment "time" calculation
  • Local authority and station ratings change intervals

Definition in file timer_game_economy.cpp.