Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redraw room when outside state is changed #523

Merged
merged 1 commit into from Aug 9, 2023

Conversation

Hypexion
Copy link
Contributor

@Hypexion Hypexion commented Jun 24, 2023

If the _Weather var is used to change if a room is outside, the room will require a full redraw to account for cloud shadows and sky reflections in water.

Thread: https://forum.caravelgames.com/viewtopic.php?TopicID=44130

@@ -1889,8 +1889,9 @@ void CRoomWidget::SyncWeather(CCueEvents& CueEvents)
bWeatherSame &= (this->cFogLayer == (BYTE)roomWeather.wFog);
bWeatherSame &= (this->wSnow == roomWeather.wSnow);
bWeatherSame &= (this->rain == roomWeather.rain);
bool bOutsideSame = (this->bOutside == roomWeather.bOutside);
bWeatherSame &= (this->bOutside == roomWeather.bOutside);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something in this diff doesn't look right to me.
How come the lightning line is being modified, and not the line above it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I'd deleted the wrong line. It is now fixed.

@mrimer mrimer merged commit 954c7d9 into CaravelGames:tss-5.2-dev Aug 9, 2023
@Hypexion Hypexion deleted the fix-outside-change branch August 9, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants