Skip to content

ParticleUplinkCannon double-click fast drive timing changes with framerate #2011

@bobtista

Description

@bobtista

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour
  • Other (please specify below)

Bug Description

The double-click detection for fast drive mode in ParticleUplinkCannonUpdate compares frame counts to milliseconds, causing inconsistent behavior at different frame rates and logic time scales.

The code compares frame number differences to a millisecond delay value:
if( m_lastDrivingClickFrame - m_2ndLastDrivingClickFrame < data->m_doubleClickToFastDriveDelay )- m_lastDrivingClickFrame stores frame numbers (TheGameLogic->getFrame())

  • m_doubleClickToFastDriveDelay is in milliseconds (500ms default, parsed via parseDurationUnsignedInt)

Reproduction Steps

  1. Use Particle Uplink Cannon
  2. Try double-clicking to activate fast drive mode at different frame rates and logic time scales

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions