Fix leaderboard opponent times and authentic pitstop recharging
This commit is contained in:
1 parent
b9353f552c
commit
3a377b0534
8 files changed
+592
-79
No files matched your search
@@ -156,6 +156,7 @@ public:
|
||||
bool has_clone_ghost() const { return clone_active_; }
|
||||
CraftPose interpolated_clone_pose(float alpha) const;
|
||||
const CloneRecording& current_recording() const { return recording_; }
|
||||
const CloneRecording& playback_clone() const { return playback_clone_; }
|
||||
|
||||
// Checks if morph triggers fired and changed terrain heights or columns
|
||||
bool consume_terrain_dirty(int& x0, int& z0, int& x1, int& z1);
|
||||
@@ -180,7 +181,7 @@ private:
|
||||
};
|
||||
|
||||
void compute_start_grid(int count, std::vector<CraftPose>& out_poses) const;
|
||||
void update_checkpoints_and_laps(CraftState& c);
|
||||
void update_checkpoints_and_laps(CraftState& c, float dt);
|
||||
void update_recharge_pads(CraftState& c, float dt);
|
||||
void update_triggers(CraftState& c);
|
||||
void update_timed_triggers(float dt);
|
||||
@@ -190,6 +191,7 @@ private:
|
||||
void push_dirty_rect(int x0, int z0, int x1, int z1);
|
||||
void activate_group(uint16_t group, int actor_player, bool allow_banner, bool fast_morph = false);
|
||||
void update_standings();
|
||||
void finalize_unfinished_times(const std::vector<size_t>& order);
|
||||
void update_particles(float dt);
|
||||
|
||||
RaceSetup setup_{};
|
||||
@@ -205,6 +207,7 @@ private:
|
||||
int last_countdown_int_ = 4;
|
||||
float elapsed_time_ = 0.0f;
|
||||
bool race_over_ = false;
|
||||
bool times_finalized_ = false;
|
||||
int winner_id_ = -1;
|
||||
|
||||
// Trigger/morph tracking
|
||||
|
||||
Reference in new issue
Block a user