OpenTTD Source 20250331-master-g3c15e0c889
newgrf_act7_9.cpp File Reference

NewGRF Action 0x07 and Action 0x09 handler. More...

#include "../stdafx.h"
#include "../debug.h"
#include "../genworld.h"
#include "../network/network.h"
#include "../newgrf_engine.h"
#include "../newgrf_cargo.h"
#include "../rail.h"
#include "../road.h"
#include "../settings_type.h"
#include "newgrf_bytereader.h"
#include "newgrf_internal.h"
#include "../safeguards.h"

Go to the source code of this file.

Functions

void InitializePatchFlags ()
 Initialize the TTDPatch flags.
 
uint32_t GetParamVal (uint8_t param, uint32_t *cond_val)
 
static void SkipIf (ByteReader &buf)
 

Variables

static std::array< uint32_t, 8 > _ttdpatch_flags
 32 * 8 = 256 flags.
 

Detailed Description

NewGRF Action 0x07 and Action 0x09 handler.

Definition in file newgrf_act7_9.cpp.

Function Documentation

◆ GetParamVal()

uint32_t GetParamVal ( uint8_t  param,
uint32_t *  cond_val 
)

Definition at line 116 of file newgrf_act7_9.cpp.

◆ InitializePatchFlags()

◆ SkipIf()

static void SkipIf ( ByteReader buf)
static

Definition at line 162 of file newgrf_act7_9.cpp.

Variable Documentation

◆ _ttdpatch_flags

std::array<uint32_t, 8> _ttdpatch_flags
static

32 * 8 = 256 flags.

Apparently TTDPatch uses this many..

Definition at line 25 of file newgrf_act7_9.cpp.

Referenced by InitializePatchFlags().