Merge pull request #103 from LuKP17/draw-internal-rescue

Ship drawn when rescued in internal view
This commit is contained in:
Dominic Szablewski 2023-11-18 08:20:39 +01:00 committed by GitHub
commit 90702ce171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,7 +154,7 @@ void ships_draw(void) {
// Ship models // Ship models
for (int i = 0; i < len(g.ships); i++) { for (int i = 0; i < len(g.ships); i++) {
if ( if (
flags_is(g.ships[i].flags, SHIP_VIEW_INTERNAL) || (flags_is(g.ships[i].flags, SHIP_VIEW_INTERNAL) && flags_not(g.ships[i].flags, SHIP_IN_RESCUE)) ||
(g.race_type == RACE_TYPE_TIME_TRIAL && i != g.pilot) (g.race_type == RACE_TYPE_TIME_TRIAL && i != g.pilot)
) { ) {
continue; continue;