Browse Source

Fix spawn location when using map debug command

pull/6458/head
Anders Jenbo 3 years ago
parent
commit
b25b6a1daa
  1. 9
      Source/quests.cpp

9
Source/quests.cpp

@ -31,6 +31,10 @@
#include "utils/language.h"
#include "utils/utf8.hpp"
#ifdef _DEBUG
#include "debug.h"
#endif
namespace devilution {
bool QuestLogIsOpen;
@ -521,6 +525,11 @@ int GetMapReturnLevel()
Point GetMapReturnPosition()
{
#ifdef _DEBUG
if (!TestMapPath.empty())
return ViewPosition;
#endif
switch (setlvlnum) {
case SL_SKELKING:
return Quests[Q_SKELKING].position + Direction::SouthEast;

Loading…
Cancel
Save