From 770080f612f72d8f4df25cab3d608ae453c5dc7e Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Tue, 17 Apr 2012 15:13:08 +0800 Subject: [PATCH] Reset the player object for the editor, since demo playback mucks it up --- CHANGELOG.txt | 1 + editor/med.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4a51077bf..2ad1dc019 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,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/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 20120416 -------- diff --git a/editor/med.c b/editor/med.c index 5c4c398a6..30814ffa8 100644 --- a/editor/med.c +++ b/editor/med.c @@ -446,6 +446,7 @@ void init_editor() Viewer = ConsoleObject; slew_init(ConsoleObject); + init_player_object(); Update_flags = UF_ALL;