From: <fu...@us...> - 2009-06-28 16:45:00
|
Revision: 6646 http://gemrb.svn.sourceforge.net/gemrb/?rev=6646&view=rev Author: fuzzie Date: 2009-06-28 16:44:51 +0000 (Sun, 28 Jun 2009) Log Message: ----------- set WMP_ENTRY_ADJACENT in RevealAreaOnMap Modified Paths: -------------- gemrb/trunk/gemrb/plugins/Core/Actions.cpp Modified: gemrb/trunk/gemrb/plugins/Core/Actions.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/Actions.cpp 2009-06-28 13:58:28 UTC (rev 6645) +++ gemrb/trunk/gemrb/plugins/Core/Actions.cpp 2009-06-28 16:44:51 UTC (rev 6646) @@ -4489,7 +4489,8 @@ printf("Can't find worldmap!\n"); abort(); } - worldmap->SetAreaStatus(parameters->string0Parameter, WMP_ENTRY_VISIBLE, BM_OR); + // WMP_ENTRY_ADJACENT because otherwise revealed bg2 areas are unreachable from city gates + worldmap->SetAreaStatus(parameters->string0Parameter, WMP_ENTRY_VISIBLE|WMP_ENTRY_ADJACENT, BM_OR); } void GameScript::HideAreaOnMap( Scriptable* /*Sender*/, Action* parameters) @@ -4499,7 +4500,8 @@ printf("Can't find worldmap!\n"); abort(); } - worldmap->SetAreaStatus(parameters->string0Parameter, WMP_ENTRY_VISIBLE, BM_NAND); + // WMP_ENTRY_ADJACENT because otherwise revealed bg2 areas are unreachable from city gates + worldmap->SetAreaStatus(parameters->string0Parameter, WMP_ENTRY_VISIBLE|WMP_ENTRY_ADJACENT, BM_NAND); } void GameScript::SendTrigger(Scriptable* Sender, Action* parameters) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |