Make vm_angvec_zero a static inline function

This commit is contained in:
Kp 2013-08-11 19:59:20 +00:00
parent 6b4ca09376
commit 69b3618961
2 changed files with 9 additions and 3 deletions

View file

@ -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
//

View file

@ -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