Skip to Content
The Alchemy Project

include/fixes.h

The fixes: each repairs a bug or undefined behaviour of the original, is off in every edition, and is turned on by BUGFIX or UBFIX, which a build may define. More…

Included by edition.h and types.h.

Macros

NameDescription
#defineFIX_ACTOR_LOOKUP_PAST_TABLE 1
#defineFIX_BOREAS_POINTS_OVERRUN 1
#defineFIX_COATLICUE_GLOW_OVERRUN 1
#defineFIX_CRYSTAL_SHARD_TABLE_OVERRUN 1
#defineFIX_DICE_DIVIDE_BY_ZERO 1
#defineFIX_DICE_MATCH_LIST_OVERFLOW 1
#defineFIX_FUNCTION_SIGNATURES 1
#defineFIX_ITALIAN_ITEM_GENDER_READ_PAST_END 1
#defineFIX_NULL_DEREFERENCE 1
#defineFIX_POINTER_OUTSIDE_OBJECT 1
#defineFIX_RAIN_STREAK_FIRST_TICK 1
#defineFIX_RESIDENT_SPAWN_LEADER_ACTOR 1
#defineFIX_RETURNED_STACK_BUFFER 1
#defineFIX_SEA_SAVED_COLORS_READ_BEFORE_ARRAY 1
#defineFIX_SIGNED_OVERFLOW 1
#defineFIX_TYPE_PUNNING 1
#defineFIX_UNDEFINED_SHIFT 1
#defineFIX_UNINITIALIZED_READ 1
#defineFIX_UNSEQUENCED_SIDE_EFFECT 1
#defineFIX_ZERO_SIZE_EMBER 1
#defineFIX_ABILITY_ID_BOUND 1
#defineFIX_ACTOR_LOOP_ONE_PAST_END 1
#defineFIX_ANEMOS_BLOCK_HOP_OVERRUN 1
#defineFIX_BRIGGS_FAN_SPEAKER 1
#defineFIX_CREDITS_LINE_LEAK 1
#defineFIX_DAEDALUS_MISSILE_SPRITES 1
#defineFIX_DAILA_BOAT_SAILOR_SPEAKER 1
#defineFIX_DAILA_PUDDLE_FLAGS_CROSSED 1
#defineFIX_DAILA_SIXTH_PUDDLE_STAYS_IN_SIGHT 1
#defineFIX_EMPTY_WINDOW_SPAN_FILL 1
#defineFIX_ENEMY_ID_BOUND 1
#defineFIX_FROST_CHIP_DRIFT 1
#defineFIX_GABOMBA_STEEL_EAST_LADDER_CELL 1
#defineFIX_GERMAN_ITEM_GENDER_OFF_BY_ONE 1
#defineFIX_HAURES_DIVE_VERTICAL_SPEED 1
#defineFIX_INTRO_LIGHTHOUSE_ROWS_COPIED_ONE_LOW 1
#defineFIX_ISLET_CAVE_BLUE_NEVER_DIMS 1
#defineFIX_KEPT_MESSAGE_FLAG_CLEAR 1
#defineFIX_LURE_CAP_STRAY_SECOND_LINE 1
#defineFIX_MAP_MARKER_TILE_ALLOCATION 1
#defineFIX_MONSTER_BATTLE_DEFEATED_FLAGS 1
#defineFIX_NARIBWE_WHERE_FROM_FLAG 1
#defineFIX_OCEAN_FIST_DROPS_VANISH_AT_TOP 1
#defineFIX_PACING_SON_EAST_END_WAIT 1
#defineFIX_PROCNE_SPARK_DEPTH 1
#defineFIX_PUSH_FACING_AND_LEADER_STEP 1
#defineFIX_QUIT_HI_LO_KEEPS_GAME 1
#defineFIX_RECT_BOTTOM_CLIP 1
#defineFIX_REQUEST_SUM_CANCELS 1
#defineFIX_RESTORE_COUNTS_STUN 1
#defineFIX_SHAMAN_VILLAGE_LETTERING_OVERRUN 1
#defineFIX_SLEEP_SHEEP_BOUNCE 1
#defineFIX_SPARKLE_GROUND_HEIGHT 1
#defineFIX_STRING_BUFFER_LEAK 1
#defineFIX_TASK_SORT_LAST_PASS 1
#defineFIX_TEXT_TILE_SCAN_ROW_STRIDE 1
#defineFIX_VINE_SLOT_COUNTER 1
#defineSET_DJINNI_WINDOW_FITS_SCREEN 1

Description

The fixes: each repairs a bug or undefined behaviour of the original, is off in every edition, and is turned on by BUGFIX or UBFIX, which a build may define. They do not depend on the edition, so a header may include this alone.

Macros in detail

FIX_ACTOR_LOOKUP_PAST_TABLE

#define FIX_ACTOR_LOOKUP_PAST_TABLE 1

#define FIX_ACTOR_LOOKUP_PAST_TABLE 0

Definition at lines 12 and 92 of file fixes.h.

FIX_BOREAS_POINTS_OVERRUN

#define FIX_BOREAS_POINTS_OVERRUN 1

#define FIX_BOREAS_POINTS_OVERRUN 0

Definition at lines 13 and 114 of file fixes.h.

FIX_COATLICUE_GLOW_OVERRUN

#define FIX_COATLICUE_GLOW_OVERRUN 1

#define FIX_COATLICUE_GLOW_OVERRUN 0

Definition at lines 14 and 130 of file fixes.h.

FIX_CRYSTAL_SHARD_TABLE_OVERRUN

#define FIX_CRYSTAL_SHARD_TABLE_OVERRUN 1

#define FIX_CRYSTAL_SHARD_TABLE_OVERRUN 0

Definition at lines 15 and 144 of file fixes.h.

FIX_DICE_DIVIDE_BY_ZERO

#define FIX_DICE_DIVIDE_BY_ZERO 1

#define FIX_DICE_DIVIDE_BY_ZERO 0

Definition at lines 16 and 180 of file fixes.h.

FIX_DICE_MATCH_LIST_OVERFLOW

#define FIX_DICE_MATCH_LIST_OVERFLOW 1

#define FIX_DICE_MATCH_LIST_OVERFLOW 0

Definition at lines 17 and 187 of file fixes.h.

FIX_FUNCTION_SIGNATURES

#define FIX_FUNCTION_SIGNATURES 1

#define FIX_FUNCTION_SIGNATURES 0

Definition at lines 18 and 221 of file fixes.h.

FIX_ITALIAN_ITEM_GENDER_READ_PAST_END

#define FIX_ITALIAN_ITEM_GENDER_READ_PAST_END 1

#define FIX_ITALIAN_ITEM_GENDER_READ_PAST_END 0

Definition at lines 19 and 267 of file fixes.h.

FIX_NULL_DEREFERENCE

#define FIX_NULL_DEREFERENCE 1

#define FIX_NULL_DEREFERENCE 0

Definition at lines 20 and 317 of file fixes.h.

FIX_POINTER_OUTSIDE_OBJECT

#define FIX_POINTER_OUTSIDE_OBJECT 1

#define FIX_POINTER_OUTSIDE_OBJECT 0

Definition at lines 21 and 344 of file fixes.h.

FIX_RAIN_STREAK_FIRST_TICK

#define FIX_RAIN_STREAK_FIRST_TICK 1

#define FIX_RAIN_STREAK_FIRST_TICK 0

Definition at lines 22 and 384 of file fixes.h.

FIX_RESIDENT_SPAWN_LEADER_ACTOR

#define FIX_RESIDENT_SPAWN_LEADER_ACTOR 1

#define FIX_RESIDENT_SPAWN_LEADER_ACTOR 0

Definition at lines 23 and 411 of file fixes.h.

FIX_RETURNED_STACK_BUFFER

#define FIX_RETURNED_STACK_BUFFER 1

#define FIX_RETURNED_STACK_BUFFER 0

Definition at lines 24 and 428 of file fixes.h.

FIX_SEA_SAVED_COLORS_READ_BEFORE_ARRAY

#define FIX_SEA_SAVED_COLORS_READ_BEFORE_ARRAY 1

#define FIX_SEA_SAVED_COLORS_READ_BEFORE_ARRAY 0

Definition at lines 25 and 436 of file fixes.h.

FIX_SIGNED_OVERFLOW

#define FIX_SIGNED_OVERFLOW 1

#define FIX_SIGNED_OVERFLOW 0

Definition at lines 26 and 453 of file fixes.h.

FIX_TYPE_PUNNING

#define FIX_TYPE_PUNNING 1

#define FIX_TYPE_PUNNING 0

Definition at lines 27 and 501 of file fixes.h.

FIX_UNDEFINED_SHIFT

#define FIX_UNDEFINED_SHIFT 1

#define FIX_UNDEFINED_SHIFT 0

Definition at lines 28 and 511 of file fixes.h.

FIX_UNINITIALIZED_READ

#define FIX_UNINITIALIZED_READ 1

#define FIX_UNINITIALIZED_READ 0

Definition at lines 29 and 522 of file fixes.h.

FIX_UNSEQUENCED_SIDE_EFFECT

#define FIX_UNSEQUENCED_SIDE_EFFECT 1

#define FIX_UNSEQUENCED_SIDE_EFFECT 0

Definition at lines 30 and 532 of file fixes.h.

FIX_ZERO_SIZE_EMBER

#define FIX_ZERO_SIZE_EMBER 1

#define FIX_ZERO_SIZE_EMBER 0

Definition at lines 31 and 548 of file fixes.h.

FIX_ABILITY_ID_BOUND

#define FIX_ABILITY_ID_BOUND 1

#define FIX_ABILITY_ID_BOUND 0

Definition at lines 36 and 83 of file fixes.h.

FIX_ACTOR_LOOP_ONE_PAST_END

#define FIX_ACTOR_LOOP_ONE_PAST_END 1

#define FIX_ACTOR_LOOP_ONE_PAST_END 0

Definition at lines 37 and 99 of file fixes.h.

FIX_ANEMOS_BLOCK_HOP_OVERRUN

#define FIX_ANEMOS_BLOCK_HOP_OVERRUN 1

#define FIX_ANEMOS_BLOCK_HOP_OVERRUN 0

Definition at lines 38 and 107 of file fixes.h.

FIX_BRIGGS_FAN_SPEAKER

#define FIX_BRIGGS_FAN_SPEAKER 1

#define FIX_BRIGGS_FAN_SPEAKER 0

Definition at lines 39 and 122 of file fixes.h.

FIX_CREDITS_LINE_LEAK

#define FIX_CREDITS_LINE_LEAK 1

#define FIX_CREDITS_LINE_LEAK 0

Definition at lines 40 and 136 of file fixes.h.

FIX_DAEDALUS_MISSILE_SPRITES

#define FIX_DAEDALUS_MISSILE_SPRITES 1

#define FIX_DAEDALUS_MISSILE_SPRITES 0

Referenced by btEffectRunDaedalus().

Definition at lines 41 and 152 of file fixes.h.

FIX_DAILA_BOAT_SAILOR_SPEAKER

#define FIX_DAILA_BOAT_SAILOR_SPEAKER 1

#define FIX_DAILA_BOAT_SAILOR_SPEAKER 0

Definition at lines 42 and 158 of file fixes.h.

FIX_DAILA_PUDDLE_FLAGS_CROSSED

#define FIX_DAILA_PUDDLE_FLAGS_CROSSED 1

#define FIX_DAILA_PUDDLE_FLAGS_CROSSED 0

Definition at lines 43 and 165 of file fixes.h.

FIX_DAILA_SIXTH_PUDDLE_STAYS_IN_SIGHT

#define FIX_DAILA_SIXTH_PUDDLE_STAYS_IN_SIGHT 1

#define FIX_DAILA_SIXTH_PUDDLE_STAYS_IN_SIGHT 0

Definition at lines 44 and 172 of file fixes.h.

FIX_EMPTY_WINDOW_SPAN_FILL

#define FIX_EMPTY_WINDOW_SPAN_FILL 1

#define FIX_EMPTY_WINDOW_SPAN_FILL 0

Definition at lines 45 and 195 of file fixes.h.

FIX_ENEMY_ID_BOUND

#define FIX_ENEMY_ID_BOUND 1

#define FIX_ENEMY_ID_BOUND 0

Definition at lines 46 and 203 of file fixes.h.

FIX_FROST_CHIP_DRIFT

#define FIX_FROST_CHIP_DRIFT 1

#define FIX_FROST_CHIP_DRIFT 0

Definition at lines 47 and 211 of file fixes.h.

FIX_GABOMBA_STEEL_EAST_LADDER_CELL

#define FIX_GABOMBA_STEEL_EAST_LADDER_CELL 1

#define FIX_GABOMBA_STEEL_EAST_LADDER_CELL 0

Definition at lines 48 and 230 of file fixes.h.

FIX_GERMAN_ITEM_GENDER_OFF_BY_ONE

#define FIX_GERMAN_ITEM_GENDER_OFF_BY_ONE 1

#define FIX_GERMAN_ITEM_GENDER_OFF_BY_ONE 0

Definition at lines 49 and 236 of file fixes.h.

FIX_HAURES_DIVE_VERTICAL_SPEED

#define FIX_HAURES_DIVE_VERTICAL_SPEED 1

#define FIX_HAURES_DIVE_VERTICAL_SPEED 0

Definition at lines 50 and 244 of file fixes.h.

FIX_INTRO_LIGHTHOUSE_ROWS_COPIED_ONE_LOW

#define FIX_INTRO_LIGHTHOUSE_ROWS_COPIED_ONE_LOW 1

#define FIX_INTRO_LIGHTHOUSE_ROWS_COPIED_ONE_LOW 0

Definition at lines 51 and 252 of file fixes.h.

FIX_ISLET_CAVE_BLUE_NEVER_DIMS

#define FIX_ISLET_CAVE_BLUE_NEVER_DIMS 1

#define FIX_ISLET_CAVE_BLUE_NEVER_DIMS 0

Definition at lines 52 and 260 of file fixes.h.

FIX_KEPT_MESSAGE_FLAG_CLEAR

#define FIX_KEPT_MESSAGE_FLAG_CLEAR 1

#define FIX_KEPT_MESSAGE_FLAG_CLEAR 0

Definition at lines 53 and 275 of file fixes.h.

FIX_LURE_CAP_STRAY_SECOND_LINE

#define FIX_LURE_CAP_STRAY_SECOND_LINE 1

#define FIX_LURE_CAP_STRAY_SECOND_LINE 0

Definition at lines 54 and 283 of file fixes.h.

FIX_MAP_MARKER_TILE_ALLOCATION

#define FIX_MAP_MARKER_TILE_ALLOCATION 1

#define FIX_MAP_MARKER_TILE_ALLOCATION 0

Definition at lines 55 and 291 of file fixes.h.

FIX_MONSTER_BATTLE_DEFEATED_FLAGS

#define FIX_MONSTER_BATTLE_DEFEATED_FLAGS 1

#define FIX_MONSTER_BATTLE_DEFEATED_FLAGS 0

Definition at lines 56 and 300 of file fixes.h.

FIX_NARIBWE_WHERE_FROM_FLAG

#define FIX_NARIBWE_WHERE_FROM_FLAG 1

#define FIX_NARIBWE_WHERE_FROM_FLAG 0

Definition at lines 57 and 308 of file fixes.h.

FIX_OCEAN_FIST_DROPS_VANISH_AT_TOP

#define FIX_OCEAN_FIST_DROPS_VANISH_AT_TOP 1

#define FIX_OCEAN_FIST_DROPS_VANISH_AT_TOP 0

Definition at lines 58 and 325 of file fixes.h.

FIX_PACING_SON_EAST_END_WAIT

#define FIX_PACING_SON_EAST_END_WAIT 1

#define FIX_PACING_SON_EAST_END_WAIT 0

Definition at lines 59 and 333 of file fixes.h.

FIX_PROCNE_SPARK_DEPTH

#define FIX_PROCNE_SPARK_DEPTH 1

#define FIX_PROCNE_SPARK_DEPTH 0

Definition at lines 60 and 352 of file fixes.h.

FIX_PUSH_FACING_AND_LEADER_STEP

#define FIX_PUSH_FACING_AND_LEADER_STEP 1

#define FIX_PUSH_FACING_AND_LEADER_STEP 0

Definition at lines 61 and 365 of file fixes.h.

FIX_QUIT_HI_LO_KEEPS_GAME

#define FIX_QUIT_HI_LO_KEEPS_GAME 1

#define FIX_QUIT_HI_LO_KEEPS_GAME 0

Definition at lines 62 and 374 of file fixes.h.

FIX_RECT_BOTTOM_CLIP

#define FIX_RECT_BOTTOM_CLIP 1

#define FIX_RECT_BOTTOM_CLIP 0

Definition at lines 63 and 393 of file fixes.h.

FIX_REQUEST_SUM_CANCELS

#define FIX_REQUEST_SUM_CANCELS 1

#define FIX_REQUEST_SUM_CANCELS 0

Definition at lines 64 and 402 of file fixes.h.

FIX_RESTORE_COUNTS_STUN

#define FIX_RESTORE_COUNTS_STUN 1

#define FIX_RESTORE_COUNTS_STUN 0

Definition at lines 65 and 420 of file fixes.h.

FIX_SHAMAN_VILLAGE_LETTERING_OVERRUN

#define FIX_SHAMAN_VILLAGE_LETTERING_OVERRUN 1

#define FIX_SHAMAN_VILLAGE_LETTERING_OVERRUN 0

Definition at lines 66 and 444 of file fixes.h.

FIX_SLEEP_SHEEP_BOUNCE

#define FIX_SLEEP_SHEEP_BOUNCE 1

#define FIX_SLEEP_SHEEP_BOUNCE 0

Definition at lines 67 and 461 of file fixes.h.

FIX_SPARKLE_GROUND_HEIGHT

#define FIX_SPARKLE_GROUND_HEIGHT 1

#define FIX_SPARKLE_GROUND_HEIGHT 0

Definition at lines 68 and 469 of file fixes.h.

FIX_STRING_BUFFER_LEAK

#define FIX_STRING_BUFFER_LEAK 1

#define FIX_STRING_BUFFER_LEAK 0

Definition at lines 69 and 476 of file fixes.h.

FIX_TASK_SORT_LAST_PASS

#define FIX_TASK_SORT_LAST_PASS 1

#define FIX_TASK_SORT_LAST_PASS 0

Definition at lines 70 and 482 of file fixes.h.

FIX_TEXT_TILE_SCAN_ROW_STRIDE

#define FIX_TEXT_TILE_SCAN_ROW_STRIDE 1

#define FIX_TEXT_TILE_SCAN_ROW_STRIDE 0

Definition at lines 71 and 491 of file fixes.h.

FIX_VINE_SLOT_COUNTER

#define FIX_VINE_SLOT_COUNTER 1

#define FIX_VINE_SLOT_COUNTER 0

Definition at lines 72 and 541 of file fixes.h.

SET_DJINNI_WINDOW_FITS_SCREEN

#define SET_DJINNI_WINDOW_FITS_SCREEN 1

#define SET_DJINNI_WINDOW_FITS_SCREEN 0

Definition at lines 73 and 556 of file fixes.h.

On this page

MacrosDescriptionMacros in detailFIX_ACTOR_LOOKUP_PAST_TABLEFIX_BOREAS_POINTS_OVERRUNFIX_COATLICUE_GLOW_OVERRUNFIX_CRYSTAL_SHARD_TABLE_OVERRUNFIX_DICE_DIVIDE_BY_ZEROFIX_DICE_MATCH_LIST_OVERFLOWFIX_FUNCTION_SIGNATURESFIX_ITALIAN_ITEM_GENDER_READ_PAST_ENDFIX_NULL_DEREFERENCEFIX_POINTER_OUTSIDE_OBJECTFIX_RAIN_STREAK_FIRST_TICKFIX_RESIDENT_SPAWN_LEADER_ACTORFIX_RETURNED_STACK_BUFFERFIX_SEA_SAVED_COLORS_READ_BEFORE_ARRAYFIX_SIGNED_OVERFLOWFIX_TYPE_PUNNINGFIX_UNDEFINED_SHIFTFIX_UNINITIALIZED_READFIX_UNSEQUENCED_SIDE_EFFECTFIX_ZERO_SIZE_EMBERFIX_ABILITY_ID_BOUNDFIX_ACTOR_LOOP_ONE_PAST_ENDFIX_ANEMOS_BLOCK_HOP_OVERRUNFIX_BRIGGS_FAN_SPEAKERFIX_CREDITS_LINE_LEAKFIX_DAEDALUS_MISSILE_SPRITESFIX_DAILA_BOAT_SAILOR_SPEAKERFIX_DAILA_PUDDLE_FLAGS_CROSSEDFIX_DAILA_SIXTH_PUDDLE_STAYS_IN_SIGHTFIX_EMPTY_WINDOW_SPAN_FILLFIX_ENEMY_ID_BOUNDFIX_FROST_CHIP_DRIFTFIX_GABOMBA_STEEL_EAST_LADDER_CELLFIX_GERMAN_ITEM_GENDER_OFF_BY_ONEFIX_HAURES_DIVE_VERTICAL_SPEEDFIX_INTRO_LIGHTHOUSE_ROWS_COPIED_ONE_LOWFIX_ISLET_CAVE_BLUE_NEVER_DIMSFIX_KEPT_MESSAGE_FLAG_CLEARFIX_LURE_CAP_STRAY_SECOND_LINEFIX_MAP_MARKER_TILE_ALLOCATIONFIX_MONSTER_BATTLE_DEFEATED_FLAGSFIX_NARIBWE_WHERE_FROM_FLAGFIX_OCEAN_FIST_DROPS_VANISH_AT_TOPFIX_PACING_SON_EAST_END_WAITFIX_PROCNE_SPARK_DEPTHFIX_PUSH_FACING_AND_LEADER_STEPFIX_QUIT_HI_LO_KEEPS_GAMEFIX_RECT_BOTTOM_CLIPFIX_REQUEST_SUM_CANCELSFIX_RESTORE_COUNTS_STUNFIX_SHAMAN_VILLAGE_LETTERING_OVERRUNFIX_SLEEP_SHEEP_BOUNCEFIX_SPARKLE_GROUND_HEIGHTFIX_STRING_BUFFER_LEAKFIX_TASK_SORT_LAST_PASSFIX_TEXT_TILE_SCAN_ROW_STRIDEFIX_VINE_SLOT_COUNTERSET_DJINNI_WINDOW_FITS_SCREEN