Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:WAD (Doom engine)/struct/TEXTURE1 patch placement

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:WAD (Doom engine)"
claim"Each patch placement in a TEXTURE1/TEXTURE2 record is 10 bytes: x and y origin, index into PNAMES, and two unused int16 fields."
scope
level"format"
applies_to"Format:WAD (Doom engine)"
observed_in
Empty array
data
name"mappatch_t"
size"0xA"
fields
offset"0x0"
size2
type"int16_t"
name"originx"
offset"0x2"
size2
type"int16_t"
name"originy"
offset"0x4"
size2
type"int16_t"
name"patch"
offset"0x6"
size2
type"int16_t"
name"stepdir (unused)"
offset"0x8"
size2
type"int16_t"
name"colormap (unused)"
evidence
type"documentation"
detail"linuxdoom-1.10/r_data.c mappatch_t; R_InitTextures uses only originx, originy and patch."
confidence"high"
related
Empty array
key"TEXTURE1 patch placement"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T03:43:16.901Z"
verifications
Empty array