Avoid pointless pointers
Passing OFVector3D by reference is annoying and is worse at passing via registers. FossilOrigin-Name: 304230c1e18fc15a2e66b01bbc1727d107b9d27be6949aad99419bc153bf6e66
This commit is contained in:
parent
d8f4f44468
commit
2f8d255946
9 changed files with 97 additions and 109 deletions
|
@ -333,8 +333,7 @@ enemylos(Monster *m, OFVector3D *v)
|
|||
if (self.trigger < lastmillis) {
|
||||
self.lastAction = 0;
|
||||
self.attacking = true;
|
||||
OFVector3D attackTarget = self.attackTarget;
|
||||
shoot(self, &attackTarget);
|
||||
shoot(self, self.attackTarget);
|
||||
[self transitionWithState:M_ATTACKING
|
||||
moving:0
|
||||
n:600
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue