diff --git a/d1x-rebirth/main/multi.c b/d1x-rebirth/main/multi.c index 2a371c8d4..37662e125 100644 --- a/d1x-rebirth/main/multi.c +++ b/d1x-rebirth/main/multi.c @@ -71,8 +71,6 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. // LOCALIZE ME!! -#define vm_angvec_zero(v) (v)->p=(v)->b=(v)->h=0 - void reset_player_object(void); // In object.c but not in object.h void multi_reset_object_texture(object *objp); void drop_player_eggs(object *playerobj); // from collide.c @@ -93,6 +91,11 @@ void multi_send_msgsend_state(int state); void multi_send_gmode_update(); void multi_do_gmode_update(const ubyte *buf); +static inline void vm_angvec_zero(vms_angvec *v) +{ + (v)->p=(v)->b=(v)->h=0; +} + // // Global variables // diff --git a/d2x-rebirth/main/multi.c b/d2x-rebirth/main/multi.c index 4addafcb3..3fa1e435d 100644 --- a/d2x-rebirth/main/multi.c +++ b/d2x-rebirth/main/multi.c @@ -103,7 +103,10 @@ void multi_do_gmode_update(const ubyte *buf); // LOCALIZE ME!! -#define vm_angvec_zero(v) (v)->p=(v)->b=(v)->h=0 +static inline void vm_angvec_zero(vms_angvec *v) +{ + (v)->p=(v)->b=(v)->h=0; +} void drop_player_eggs(object *player); // from collide.c