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 (config.h). More…

Included by edition.h.

Macros

NameDescription
#defineFIX_BOREAS_POINTS_OVERRUN 1
#defineFIX_DICE_DIVIDE_BY_ZERO 1
#defineFIX_DICE_MATCH_LIST_OVERFLOW 1
#defineFIX_FUNCTION_SIGNATURES 1
#defineFIX_NULL_DEREFERENCE 1
#defineFIX_PILLAR_SORT_SCRATCH_OVERRUN 1
#defineFIX_POINTER_OUTSIDE_OBJECT 1
#defineFIX_RETURNED_STACK_BUFFER 1
#defineFIX_SHIP_DECK_CONST_TABLE_WRITTEN 1
#defineFIX_SIGNED_OVERFLOW 1
#defineFIX_SPEAKER_SPRITE_PAST_TABLE 1
#defineFIX_TYPE_PUNNING 1
#defineFIX_UNDEFINED_SHIFT 1
#defineFIX_UNINITIALIZED_READ 1
#defineFIX_UNSEQUENCED_SIDE_EFFECT 1
#defineFIX_ABILITY_ID_BOUND 1
#defineFIX_ASURA_SWORD_LOW_DRAW_HEIGHT 1
#defineFIX_CREDITS_LINE_LEAK 1
#defineFIX_DEBUG_ENTRANCE_JUMP_WRAP 1
#defineFIX_DONPA_ATTENDANT_GRATEFUL_SPEAKER 1
#defineFIX_DROP_PICKER_CANNOT_REMOVE_MESSAGE 1
#defineFIX_EMPTY_WINDOW_SPAN_FILL 1
#defineFIX_ENEMY_ID_BOUND 1
#defineFIX_FACING_PASSED_AS_ACTOR_ID 1
#defineFIX_FALL_WAIT_NULL_ACTOR 1
#defineFIX_FIRST_TREASURE_SPOT_IN_ACTOR_LOOPS 1
#defineFIX_FROST_CHIP_DRIFT 1
#defineFIX_FUSION_WAITS_FOR_BOTH 1
#defineFIX_GATE_GUARDS_ACTOR_IDS 1
#defineFIX_HAMAS_ROOM_FEIZHI_BOUNCE 1
#defineFIX_HAND_CURSOR_FREE_BLOCK_TEST 1
#defineFIX_HUT_OWNER_HIDDEN_BY_DAY 1
#defineFIX_KEPT_MESSAGE_FLAG_CLEAR 1
#defineFIX_LUNPA_TRAVELING_HEALER_SANCTUM 1
#defineFIX_MAP_MARKER_TILE_ALLOCATION 1
#defineFIX_MISSING_IVY_SCALE 1
#defineFIX_PAIR_JOINED_DIVIDER 1
#defineFIX_PROCNE_SPARK_DEPTH 1
#defineFIX_RECT_BOTTOM_CLIP 1
#defineFIX_REQUEST_SUM_CANCELS 1
#defineFIX_RESTORE_COUNTS_STUN 1
#defineFIX_SANDSTORM_LEADER_SHADOW 1
#defineFIX_SAND_PUFF_ROW 1
#defineFIX_SHIP_CAMERA_WAIT_MASK 1
#defineFIX_SLEEP_SHEEP_BOUNCE 1
#defineFIX_TASK_SORT_LAST_PASS 1
#defineFIX_TEXT_TILE_SCAN_ROW_STRIDE 1
#defineFIX_TITLE_INTRO_STATE_ALLOCATION 1
#defineFIX_UNOPENED_WINDOW_REDRAW 1
#defineFIX_WANDER_AHEAD_PROBE 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 (config.h). They do not depend on the edition, so a header may include this alone.

Macros in detail

FIX_BOREAS_POINTS_OVERRUN

#define FIX_BOREAS_POINTS_OVERRUN 1

#define FIX_BOREAS_POINTS_OVERRUN 0

Definition at lines 12 and 91 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 13 and 112 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 14 and 119 of file fixes.h.

FIX_FUNCTION_SIGNATURES

#define FIX_FUNCTION_SIGNATURES 1

#define FIX_FUNCTION_SIGNATURES 0

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

FIX_NULL_DEREFERENCE

#define FIX_NULL_DEREFERENCE 1

#define FIX_NULL_DEREFERENCE 0

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

FIX_PILLAR_SORT_SCRATCH_OVERRUN

#define FIX_PILLAR_SORT_SCRATCH_OVERRUN 1

#define FIX_PILLAR_SORT_SCRATCH_OVERRUN 0

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

FIX_POINTER_OUTSIDE_OBJECT

#define FIX_POINTER_OUTSIDE_OBJECT 1

#define FIX_POINTER_OUTSIDE_OBJECT 0

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

FIX_RETURNED_STACK_BUFFER

#define FIX_RETURNED_STACK_BUFFER 1

#define FIX_RETURNED_STACK_BUFFER 0

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

FIX_SHIP_DECK_CONST_TABLE_WRITTEN

#define FIX_SHIP_DECK_CONST_TABLE_WRITTEN 1

#define FIX_SHIP_DECK_CONST_TABLE_WRITTEN 0

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

FIX_SIGNED_OVERFLOW

#define FIX_SIGNED_OVERFLOW 1

#define FIX_SIGNED_OVERFLOW 0

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

FIX_SPEAKER_SPRITE_PAST_TABLE

#define FIX_SPEAKER_SPRITE_PAST_TABLE 1

#define FIX_SPEAKER_SPRITE_PAST_TABLE 0

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

FIX_TYPE_PUNNING

#define FIX_TYPE_PUNNING 1

#define FIX_TYPE_PUNNING 0

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

FIX_UNDEFINED_SHIFT

#define FIX_UNDEFINED_SHIFT 1

#define FIX_UNDEFINED_SHIFT 0

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

FIX_UNINITIALIZED_READ

#define FIX_UNINITIALIZED_READ 1

#define FIX_UNINITIALIZED_READ 0

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

FIX_UNSEQUENCED_SIDE_EFFECT

#define FIX_UNSEQUENCED_SIDE_EFFECT 1

#define FIX_UNSEQUENCED_SIDE_EFFECT 0

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

FIX_ABILITY_ID_BOUND

#define FIX_ABILITY_ID_BOUND 1

#define FIX_ABILITY_ID_BOUND 0

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

FIX_ASURA_SWORD_LOW_DRAW_HEIGHT

#define FIX_ASURA_SWORD_LOW_DRAW_HEIGHT 1

#define FIX_ASURA_SWORD_LOW_DRAW_HEIGHT 0

Definition at lines 32 and 84 of file fixes.h.

FIX_CREDITS_LINE_LEAK

#define FIX_CREDITS_LINE_LEAK 1

#define FIX_CREDITS_LINE_LEAK 0

Definition at lines 33 and 97 of file fixes.h.

FIX_DEBUG_ENTRANCE_JUMP_WRAP

#define FIX_DEBUG_ENTRANCE_JUMP_WRAP 1

#define FIX_DEBUG_ENTRANCE_JUMP_WRAP 0

Definition at lines 34 and 104 of file fixes.h.

FIX_DONPA_ATTENDANT_GRATEFUL_SPEAKER

#define FIX_DONPA_ATTENDANT_GRATEFUL_SPEAKER 1

#define FIX_DONPA_ATTENDANT_GRATEFUL_SPEAKER 0

Definition at lines 35 and 128 of file fixes.h.

FIX_DROP_PICKER_CANNOT_REMOVE_MESSAGE

#define FIX_DROP_PICKER_CANNOT_REMOVE_MESSAGE 1

#define FIX_DROP_PICKER_CANNOT_REMOVE_MESSAGE 0

Definition at lines 36 and 137 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 37 and 145 of file fixes.h.

FIX_ENEMY_ID_BOUND

#define FIX_ENEMY_ID_BOUND 1

#define FIX_ENEMY_ID_BOUND 0

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

FIX_FACING_PASSED_AS_ACTOR_ID

#define FIX_FACING_PASSED_AS_ACTOR_ID 1

#define FIX_FACING_PASSED_AS_ACTOR_ID 0

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

FIX_FALL_WAIT_NULL_ACTOR

#define FIX_FALL_WAIT_NULL_ACTOR 1

#define FIX_FALL_WAIT_NULL_ACTOR 0

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

FIX_FIRST_TREASURE_SPOT_IN_ACTOR_LOOPS

#define FIX_FIRST_TREASURE_SPOT_IN_ACTOR_LOOPS 1

#define FIX_FIRST_TREASURE_SPOT_IN_ACTOR_LOOPS 0

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

FIX_FROST_CHIP_DRIFT

#define FIX_FROST_CHIP_DRIFT 1

#define FIX_FROST_CHIP_DRIFT 0

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

FIX_FUSION_WAITS_FOR_BOTH

#define FIX_FUSION_WAITS_FOR_BOTH 1

#define FIX_FUSION_WAITS_FOR_BOTH 0

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

FIX_GATE_GUARDS_ACTOR_IDS

#define FIX_GATE_GUARDS_ACTOR_IDS 1

#define FIX_GATE_GUARDS_ACTOR_IDS 0

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

FIX_HAMAS_ROOM_FEIZHI_BOUNCE

#define FIX_HAMAS_ROOM_FEIZHI_BOUNCE 1

#define FIX_HAMAS_ROOM_FEIZHI_BOUNCE 0

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

FIX_HAND_CURSOR_FREE_BLOCK_TEST

#define FIX_HAND_CURSOR_FREE_BLOCK_TEST 1

#define FIX_HAND_CURSOR_FREE_BLOCK_TEST 0

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

FIX_HUT_OWNER_HIDDEN_BY_DAY

#define FIX_HUT_OWNER_HIDDEN_BY_DAY 1

#define FIX_HUT_OWNER_HIDDEN_BY_DAY 0

Definition at lines 47 and 241 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 48 and 249 of file fixes.h.

FIX_LUNPA_TRAVELING_HEALER_SANCTUM

#define FIX_LUNPA_TRAVELING_HEALER_SANCTUM 1

#define FIX_LUNPA_TRAVELING_HEALER_SANCTUM 0

Definition at lines 49 and 257 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 50 and 265 of file fixes.h.

FIX_MISSING_IVY_SCALE

#define FIX_MISSING_IVY_SCALE 1

#define FIX_MISSING_IVY_SCALE 0

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

FIX_PAIR_JOINED_DIVIDER

#define FIX_PAIR_JOINED_DIVIDER 1

#define FIX_PAIR_JOINED_DIVIDER 0

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

FIX_PROCNE_SPARK_DEPTH

#define FIX_PROCNE_SPARK_DEPTH 1

#define FIX_PROCNE_SPARK_DEPTH 0

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

FIX_RECT_BOTTOM_CLIP

#define FIX_RECT_BOTTOM_CLIP 1

#define FIX_RECT_BOTTOM_CLIP 0

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

FIX_REQUEST_SUM_CANCELS

#define FIX_REQUEST_SUM_CANCELS 1

#define FIX_REQUEST_SUM_CANCELS 0

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

FIX_RESTORE_COUNTS_STUN

#define FIX_RESTORE_COUNTS_STUN 1

#define FIX_RESTORE_COUNTS_STUN 0

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

FIX_SANDSTORM_LEADER_SHADOW

#define FIX_SANDSTORM_LEADER_SHADOW 1

#define FIX_SANDSTORM_LEADER_SHADOW 0

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

FIX_SAND_PUFF_ROW

#define FIX_SAND_PUFF_ROW 1

#define FIX_SAND_PUFF_ROW 0

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

FIX_SHIP_CAMERA_WAIT_MASK

#define FIX_SHIP_CAMERA_WAIT_MASK 1

#define FIX_SHIP_CAMERA_WAIT_MASK 0

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

FIX_SLEEP_SHEEP_BOUNCE

#define FIX_SLEEP_SHEEP_BOUNCE 1

#define FIX_SLEEP_SHEEP_BOUNCE 0

Definition at lines 60 and 400 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 61 and 414 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 62 and 423 of file fixes.h.

FIX_TITLE_INTRO_STATE_ALLOCATION

#define FIX_TITLE_INTRO_STATE_ALLOCATION 1

#define FIX_TITLE_INTRO_STATE_ALLOCATION 0

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

FIX_UNOPENED_WINDOW_REDRAW

#define FIX_UNOPENED_WINDOW_REDRAW 1

#define FIX_UNOPENED_WINDOW_REDRAW 0

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

FIX_WANDER_AHEAD_PROBE

#define FIX_WANDER_AHEAD_PROBE 1

#define FIX_WANDER_AHEAD_PROBE 0

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

SET_DJINNI_WINDOW_FITS_SCREEN

#define SET_DJINNI_WINDOW_FITS_SCREEN 1

Definition at line 66 of file fixes.h.