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
Conversation
I hope....
This reverts commit 68fbcd3.
src/light_data.c
Outdated
lgt->flags &= ~2; | ||
if ( lgt->flags & LgtF_Dynamic ) | ||
{ | ||
lgt->field_9[0] = a2; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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;
There was a problem hiding this 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.
No description provided.