Skip rendering of OBJ_NONE objects to avoid a failed Assert (can happen when playing a demo then going to the editor)
This commit is contained in:
parent
770080f612
commit
5197d7665a
|
@ -5,6 +5,7 @@ D2X-Rebirth Changelog
|
||||||
main/game.c: Make sure Cursegp is initialised if using it to set an object when loading a game (EDITOR build). Thought I already committed this
|
main/game.c: Make sure Cursegp is initialised if using it to set an object when loading a game (EDITOR build). Thought I already committed this
|
||||||
main/gameseq.c: Finish the game cleanly, closing Game_wind, if Current_level_num is 0
|
main/gameseq.c: Finish the game cleanly, closing Game_wind, if Current_level_num is 0
|
||||||
editor/med.c: Reset the player object for the editor, since demo playback mucks it up
|
editor/med.c: Reset the player object for the editor, since demo playback mucks it up
|
||||||
|
main/render.c: Skip rendering of OBJ_NONE objects to avoid a failed Assert (can happen when playing a demo then going to the editor)
|
||||||
|
|
||||||
20120416
|
20120416
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -1455,6 +1455,9 @@ void build_object_lists(int n_segs)
|
||||||
|
|
||||||
obj = &Objects[objnum];
|
obj = &Objects[objnum];
|
||||||
|
|
||||||
|
if (obj->type == OBJ_NONE)
|
||||||
|
continue;
|
||||||
|
|
||||||
Assert( obj->segnum == segnum );
|
Assert( obj->segnum == segnum );
|
||||||
|
|
||||||
if (obj->flags & OF_ATTACHED)
|
if (obj->flags & OF_ATTACHED)
|
||||||
|
|
Loading…
Reference in a new issue