Pass objptridx_t to draw_powerup
This commit is contained in:
parent
e2afc332ac
commit
e402b0ee51
|
@ -125,7 +125,7 @@ extern powerup_type_info Powerup_info[MAX_POWERUP_TYPES];
|
||||||
struct powerup_type_info;
|
struct powerup_type_info;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void draw_powerup(object *obj);
|
void draw_powerup(objptridx_t obj);
|
||||||
|
|
||||||
//returns true if powerup consumed
|
//returns true if powerup consumed
|
||||||
int do_powerup(object *obj);
|
int do_powerup(object *obj);
|
||||||
|
|
|
@ -128,7 +128,7 @@ static void draw_blob_outline(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void draw_powerup(object *obj)
|
void draw_powerup(objptridx_t obj)
|
||||||
{
|
{
|
||||||
#ifdef EDITOR
|
#ifdef EDITOR
|
||||||
blob_vertices[0].x = 0x80000;
|
blob_vertices[0].x = 0x80000;
|
||||||
|
@ -137,7 +137,7 @@ void draw_powerup(object *obj)
|
||||||
draw_object_blob(obj, Vclip[obj->rtype.vclip_info.vclip_num].frames[obj->rtype.vclip_info.framenum] );
|
draw_object_blob(obj, Vclip[obj->rtype.vclip_info.vclip_num].frames[obj->rtype.vclip_info.framenum] );
|
||||||
|
|
||||||
#ifdef EDITOR
|
#ifdef EDITOR
|
||||||
if (EditorWindow && (Cur_object_index == obj-Objects))
|
if (EditorWindow && (Cur_object_index == obj))
|
||||||
if (blob_vertices[0].x != 0x80000)
|
if (blob_vertices[0].x != 0x80000)
|
||||||
draw_blob_outline();
|
draw_blob_outline();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue