Create new entity structs for Objects

This commit is contained in:
octorock
2023-07-31 21:31:30 +02:00
parent eb233b05cd
commit 4d67e6fe1f
178 changed files with 3741 additions and 3500 deletions
+4 -4
View File
@@ -11,7 +11,7 @@
#include "projectile.h"
#include "projectile/winder.h"
void FireballChain(Entity* thisx) {
void FireballChain(Entity* this) {
WinderEntity* newSegment;
Entity* parent;
Entity* child;
@@ -33,11 +33,11 @@ void FireballChain(Entity* thisx) {
newSegment->base.type = i;
newSegment->base.parent = parent;
newSegment->base.child = child;
CopyPosition(thisx, &newSegment->base);
CopyPosition(this, &newSegment->base);
for (j = 0, tmp = newSegment->positions; j < WINDER_NUM_SEGMENTS; j++) {
*tmp++ = thisx->x.HALF.HI;
*tmp++ = thisx->y.HALF.HI;
*tmp++ = this->x.HALF.HI;
*tmp++ = this->y.HALF.HI;
}
child = &newSegment->base;