Skip to content

Commit adda1c1

Browse files
authored
adaptive aligned std::array based vector types (#686)
1 parent 19762b9 commit adda1c1

File tree

131 files changed

+3394
-3590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+3394
-3590
lines changed

Descent3/AIGoal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ void GoalInitWanderAround(object *obj, goal *goal_ptr) {
505505
pos = Rooms[roomnum].path_pnt;
506506
} else {
507507
ComputeTerrainSegmentCenter(&pos, CELLNUM(roomnum));
508-
pos.y += (ai_info->biased_flight_max + ai_info->biased_flight_min) / 2.0f;
508+
pos.y() += (ai_info->biased_flight_max + ai_info->biased_flight_min) / 2.0f;
509509
}
510510
} else {
511511
int tx = (ps_rand() % (TERRAIN_WIDTH - 56)) + (56 / 2);
@@ -514,7 +514,7 @@ void GoalInitWanderAround(object *obj, goal *goal_ptr) {
514514
int cell = tx + TERRAIN_WIDTH * tz;
515515
roomnum = 0x80000000 | cell;
516516
ComputeTerrainSegmentCenter(&pos, cell);
517-
pos.y += (ai_info->biased_flight_max + ai_info->biased_flight_min) / 2.0f;
517+
pos.y() += (ai_info->biased_flight_max + ai_info->biased_flight_min) / 2.0f;
518518
}
519519

520520
goal_ptr->g_info.pos = pos;

0 commit comments

Comments
 (0)