Permalink
Browse files

only bgs have dreams; fixes getting chapter text and innates elsewhere

all games have bg1 leftovers, but only bg2 replaced the content
  • Loading branch information...
1 parent 40ec457 commit 8e8452ebce2118d61cd96eccc600cc1f287c4f9c @lynxlynxlynx lynxlynxlynx committed Dec 28, 2013
View
@@ -1672,7 +1672,8 @@ bool Game::RestParty(int checks, int dream, int hp)
if (gamedata->Exists("player1d",IE_BCS_CLASS_ID, true)) {
cutscene = true;
PlayerDream();
- } else if (gamedata->Exists("drmtxt2", IE_2DA_CLASS_ID, true)) {
+ // all games have these bg1 leftovers, but only bg2 replaced the content
+ } else if (gamedata->GetResource("drmtxt2", IE_2DA_CLASS_ID, true)->Size() > 0) {
TextDream();
}
No changes.
No changes.
No changes.
No changes.

2 comments on commit 8e8452e

Owner

bradallred replied Dec 28, 2013

wouldn't it have been better to have the empty file in shared and override in BG1/2?

Owner

lynxlynxlynx replied Dec 28, 2013

the files are in the original data, so for that to work, they'd need to be in unhardcoded/, but then the overriding ability would be lost.

Please sign in to comment.