Skip to content

Keep a light animation list with a non-positive fps on its first entry - #1070

Open
Reveares wants to merge 1 commit into
Try:masterfrom
Reveares:fix/light-fps-zero
Open

Reveares wants to merge 1 commit into
Try:masterfrom
Reveares:fix/light-fps-zero

Conversation

@Reveares

Copy link
Copy Markdown
Contributor

LightSource converted 1000.0/fps to uint64_t, which is undefined for fps 0. Gothic II's OldWorld has two such lights (preset POISON, the crystal lamps in the Old Camp's mages' library). GCC stores 0, so the light takes the static path with a color that was never set and stays dark, while clang stores 2^63 and shows the first entry. The original shows them lit blue.

A list with a non-positive fps is now treated like a one-entry list: a static light on its first entry. The different lighting is probably tracked in #932 and #871.

Original
orig-near1

Before OpenGothic
og-master-gcc-view

After OpenGothic
og-branch-gcc-view

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.

1 participant