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

Rewrote several light routines. #954

Merged
merged 31 commits into from Apr 11, 2022
Merged

Rewrote several light routines. #954

merged 31 commits into from Apr 11, 2022

Conversation

AdamPlenty
Copy link
Contributor

No description provided.

src/light_data.c Outdated Show resolved Hide resolved
src/light_data.c Outdated Show resolved Hide resolved
src/light_data.c Outdated Show resolved Hide resolved
src/light_data.c Outdated Show resolved Hide resolved
src/light_data.c Outdated Show resolved Hide resolved
@AdamPlenty AdamPlenty requested a review from SimLV December 8, 2021 02:42
@Loobinex Loobinex marked this pull request as draft December 8, 2021 20:16
@Loobinex Loobinex marked this pull request as ready for review December 8, 2021 20:16
src/light_data.c Outdated Show resolved Hide resolved
src/light_data.c Outdated
lgt->flags &= ~2;
if ( lgt->flags & LgtF_Dynamic )
{
lgt->field_9[0] = a2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please break field_9 (as array of size 5) into field_9 and field_A[4].
Also I am unsure is field_9 signed or not (a2 is signed).
Also a2 is either byte or signed char.

src/light_data.c Outdated
if ( lgt->flags & LgtF_Dynamic )
{
lgt->field_9[0] = a2;
*(unsigned short *)&lgt->field_1C[8] = a3;
Copy link
Contributor

Choose a reason for hiding this comment

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

same.
byte field_1C[10]; should be split into byte field_1C[8]; plus unsigned short field_24;
and here should be lgt->field_24 = a3;

@Loobinex Loobinex moved this from To do to In progress in Release KeeperFX 0.4.9 Feb 20, 2022
Copy link
Member

@Loobinex Loobinex left a comment

Choose a reason for hiding this comment

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

Still lots of unknowns and mystery flags, but I guess it will have to do for now. I'll merge.

@Loobinex Loobinex merged commit 71aba4f into dkfans:master Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants