-
Notifications
You must be signed in to change notification settings - Fork 44
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
Implement DoEndSummary2 (aka Damage Gallery) #152
Conversation
sel_actor = BrActorAllocate(BR_ACTOR_MODEL, NULL); | ||
sel_actor->render_style = BR_RSTYLE_BOUNDING_EDGES; | ||
sel_actor->render_style = BR_RSTYLE_NONE; // FIXME: remove this line once BR_RSTYLE_BOUNDING_EDGES rener style has been implemente | ||
sel_actor->model = gWreck_array[gWreck_selected].actor->model; | ||
BrActorAdd(gWreck_array[gWreck_selected].actor, sel_actor); |
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.
The line:
sel_actor->render_style = BR_RSTYLE_NONE;
is the only difference with Carmageddon, because rendering bounding boxes is not implemented (yet) by the opengl renderern.
d221168
to
30558d0
Compare
I'm getting some compiler warnings on this new code - few of these ones:
for things like |
We really need to reduce the number of warnings to 0.
This one is intentional, to silence the warning an explicit
This indeed needs an explicit initialization. I don't think there is a general way of tagging variables to say they are written by a function. Microsoft has SAL annotations but idk about other compilers. |
Agree. We used to have this, but over time the number has crept up. Its not bad on gcc/clang, but I think on windows (where I don't spend much time) is worse. Need to be more intentional with the warnings we enable probably, things like "variable initialized but not used" shouldn't be flagged - we are replicating existing logic rather than writing everything as cleanly as possible. |
This pr implements the post-race "Damage Gallery".