Skip to content

Commit

Permalink
Bullet targets can also be a CellClass, which derive from AbstractCla…
Browse files Browse the repository at this point in the history
…ss, thus the Target field should be AbstractClass rather than ObjectClass.

Plus some more changes.
  • Loading branch information
AlexBx committed Oct 13, 2012
1 parent 32293a3 commit aebeb03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions BulletClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ class BulletClass : public ObjectClass
DWORD unknown_100;
bool unknown_104;
DWORD unknown_108;
ObjectClass* Target;
DWORD unknown_110;
DWORD InheritedColor;
AbstractClass* Target;
int Speed;
int InheritedColor;
DWORD unknown_118;
DWORD unknown_11C;
DWORD unknown_120;
DWORD unknown_124;
double unknown_120;
WarheadTypeClass* WH;
byte AnimRate;
byte unknown_12D; // AnimRate from Type
WeaponTypeClass* WeaponType;
CoordStruct posSrc;
CoordStruct posTgt;
Expand Down
2 changes: 1 addition & 1 deletion BulletTypeClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class BulletTypeClass : public ObjectTypeClass
{ JMP_THIS(0x46BBC0); }

BulletClass* __fastcall CreateBullet(
CellClass* Target,
AbstractClass* Target,
TechnoClass* Owner,
int Damage,
WarheadTypeClass *WH,
Expand Down

0 comments on commit aebeb03

Please sign in to comment.