Skip to content

Commit 846e8f1

Browse files
authored
Merge pull request FoxdieTeam#2133 from KieronJ/target
Renames for TARGET
2 parents 387a507 + 4b4c664 commit 846e8f1

File tree

48 files changed

+489
-459
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+489
-459
lines changed

build/functions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@
11151115
8004E41C 60 sna_sub_8004E41C
11161116
8004E458 104 sub_8004E458
11171117
8004E4C0 92 sub_8004E4C0
1118-
8004E51C 108 sub_8004E51C
1118+
8004E51C 108 sna_line_check
11191119
8004E588 96 sub_8004E588
11201120
8004E5E8 308 sub_8004E5E8
11211121
8004E71C 236 sna_8004E71C

source/bullet/bakudan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void Act(BakudanWork *work)
8080
work->map_index = target->map;
8181

8282
// if the target is not alive, destroy the actor
83-
if (!target->field_20)
83+
if (!target->body)
8484
{
8585
GV_DestroyActor(&work->actor);
8686
return;

source/bullet/blast.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "anime/animconv/anime.h"
1111
#include "game/game.h"
1212
#include "sd/g_sound.h"
13+
#include "linkvar.h"
1314
#include "strcode.h"
1415

1516
/*---------------------------------------------------------------------------*/
@@ -31,14 +32,14 @@ typedef struct _Work
3132
/*---------------------------------------------------------------------------*/
3233

3334
BLAST_DATA blast_data_8009F4B8[8] = {
34-
{ 0x100, 5, 0x3E8, 0x7D0, 2 },
35-
{ 0x100, 5, 0x3E8, 0x7D0, 6 },
36-
{ 0x100, 5, 0x3E8, 0x7D0, 5 },
37-
{ 0x100, 5, 0x3E8, 0x7D0, 4 },
38-
{ 0x100, 5, 0x3E8, 0x7D0, 3 },
39-
{ 0x100, 5, 0x3E8, 0x7D0, -1 },
40-
{ 0x400, 5, 0x3E8, 0x7D0, 10 },
41-
{ 0, 0, 1, 1, -1 }
35+
{ 0x100, 5, 0x3E8, 0x7D0, WP_Grenade },
36+
{ 0x100, 5, 0x3E8, 0x7D0, WP_C4 },
37+
{ 0x100, 5, 0x3E8, 0x7D0, WP_Claymore },
38+
{ 0x100, 5, 0x3E8, 0x7D0, WP_Stinger },
39+
{ 0x100, 5, 0x3E8, 0x7D0, WP_Nikita },
40+
{ 0x100, 5, 0x3E8, 0x7D0, WP_None },
41+
{ 0x400, 5, 0x3E8, 0x7D0, WP_Max },
42+
{ 0, 0, 1, 1, WP_None }
4243
};
4344

4445
/*---------------------------------------------------------------------------*/
@@ -106,7 +107,7 @@ static void InitBlastTarget(BLAST_DATA *blast_data, Work *work, int side)
106107

107108
GM_Target_8002DCCC(target, 7, 2, blast_data->field_0 >> 1, blast_data->field_4, svector_8009F558);
108109

109-
target->field_44 = blast_data->field_10;
110+
target->weapon = blast_data->weapon;
110111

111112
GM_MoveTarget(&work->target, &work->pos);
112113
GM_PowerTarget(target);
@@ -125,7 +126,7 @@ static void InitBlastTarget(BLAST_DATA *blast_data, Work *work, int side)
125126

126127
GM_Target_8002DCCC(target, 7, 2, blast_data->field_0 >> 1, 3, svector_8009F558);
127128

128-
target->field_44 = blast_data->field_10;
129+
target->weapon = blast_data->weapon;
129130

130131
GM_MoveTarget(&work->target, &work->pos);
131132
GM_PowerTarget(target);

source/bullet/blast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ typedef struct BLAST_DATA
1414
int field_4;
1515
int field_8_z; // size
1616
int field_C; // also size?
17-
int field_10; // TARGET->field_44
17+
int weapon;
1818
} BLAST_DATA;
1919

2020
void *NewBlast( MATRIX *world, BLAST_DATA *blast_data );

source/bullet/jirai.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static void Act(JiraiWork *work)
329329
return;
330330
}
331331

332-
if ((target2->field_40 & 1) && (GM_PlayerStatus & (PLAYER_INVINCIBLE | PLAYER_GROUND)))
332+
if ((target2->push_side & PLAYER_SIDE) && (GM_PlayerStatus & (PLAYER_INVINCIBLE | PLAYER_GROUND)))
333333
{
334334
target2->damaged &= ~TARGET_PUSH;
335335
dword_8009F444 = 0;

0 commit comments

Comments
 (0)