mirror of https://github.com/nmlgc/ReC98.git
[Reverse-engineering] [th05] Bullets: Far wrapper for regular bullet spawning
Only used for the revenge bullets fired from Stage 3 Alice's barrier. Not worth creating a separate translation unit, especially since the function above is undecompilable as well… Part of P0152, funded by -Tom- and [Anonymous].
This commit is contained in:
parent
217ee589ea
commit
9ff0033a0c
|
@ -241,6 +241,9 @@ extern nearfunc_t_near bullet_template_tune;
|
|||
#if (GAME == 5)
|
||||
void near bullets_add_regular(void);
|
||||
void near bullets_add_special(void);
|
||||
|
||||
// Only used for the revenge bullets fired from Stage 3 Alice's barrier.
|
||||
void far bullets_add_regular_far(void);
|
||||
#else
|
||||
// TH04 additionally uses pointless per-difficulty wrappers around these
|
||||
// spawn functions that don't actually do anything difficulty-specific.
|
||||
|
|
|
@ -11,11 +11,20 @@ MAIN_03 group MAIN_031_TEXT
|
|||
extrn _bullet_template:bullet_template_t
|
||||
extrn _playperf:byte
|
||||
|
||||
_bullets_add_regular procdesc near
|
||||
|
||||
; ----------------------------------------------------------------------------
|
||||
|
||||
MAIN_031_TEXT segment word public 'CODE' use16
|
||||
assume cs:MAIN_03
|
||||
|
||||
public _bullets_add_regular_far
|
||||
_bullets_add_regular_far proc far
|
||||
call _bullets_add_regular
|
||||
retf
|
||||
_bullets_add_regular_far endp
|
||||
|
||||
|
||||
tune proc
|
||||
public TUNE_FOR_EASY
|
||||
public TUNE_FOR_HARD
|
||||
|
|
|
@ -9176,7 +9176,7 @@ loc_128D8:
|
|||
mov _bullet_template.BT_origin, eax
|
||||
call randring1_next16
|
||||
mov _bullet_template.BT_angle, al
|
||||
call sub_15DE2
|
||||
call _bullets_add_regular_far
|
||||
|
||||
loc_128EA:
|
||||
call hitshot_from pascal, [si+shot_alive_t.SA_shot]
|
||||
|
@ -10566,17 +10566,10 @@ loc_15DDF:
|
|||
pop si
|
||||
retn
|
||||
_bullets_add_raw endp
|
||||
|
||||
; =============== S U B R O U T I N E =======================================
|
||||
|
||||
|
||||
sub_15DE2 proc far
|
||||
call _bullets_add_regular
|
||||
retf
|
||||
sub_15DE2 endp
|
||||
main_031_TEXT ends
|
||||
|
||||
main_032_TEXT segment byte public 'CODE' use16
|
||||
extern _bullets_add_regular_far:proc
|
||||
BULLET_TEMPLATE_TUNE_EASY procdesc near
|
||||
BULLET_TEMPLATE_TUNE_NORMAL procdesc near
|
||||
BULLET_TEMPLATE_TUNE_HARD procdesc near
|
||||
|
|
Loading…
Reference in New Issue