Skip to content

Commit

Permalink
Fix typo in c2dc463
Browse files Browse the repository at this point in the history
Co-authored-by: Qais Patankar <qaisjp@gmail.com>
  • Loading branch information
FileEX and qaisjp committed Apr 6, 2020
1 parent 3d92acd commit a03f2a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Client/mods/deathmatch/logic/CClientVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3598,8 +3598,6 @@ void CClientVehicle::Interpolate()

void CClientVehicle::GetInitialDoorStates(SFixedArray<unsigned char, MAX_DOORS>& ucOutDoorStates)
{
memset(&ucOutDoorStates[0], DT_DOOR_INTACT, MAX_DOORS);

// Keep the bonet and boot intact
ucOutDoorStates[0] = ucOutDoorStates[1] = DT_DOOR_INTACT;
memset(&ucOutDoorStates[0], DT_DOOR_INTACT, MAX_DOORS);

This comment has been minimized.

Copy link
@qaisjp

qaisjp Apr 6, 2020

Author Contributor

@FileEX I think this is still wrong. What is the use of setting [0] and [1] to DT_DOOR_INTACT when all the doors are being set to DT_DOOR_INTACT in the following lines? I think #599 was a bad merge.

Expand Down
2 changes: 0 additions & 2 deletions Server/mods/deathmatch/logic/CVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,6 @@ void CVehicle::SetPaintjob(unsigned char ucPaintjob)

void CVehicle::GetInitialDoorStates(SFixedArray<unsigned char, MAX_DOORS>& ucOutDoorStates)
{
memset(&ucOutDoorStates[0], DT_DOOR_INTACT, MAX_DOORS);

// Keep the bonet and boot intact
ucOutDoorStates[0] = ucOutDoorStates[1] = DT_DOOR_INTACT;
memset(&ucOutDoorStates[0], DT_DOOR_INTACT, MAX_DOORS);
Expand Down

0 comments on commit a03f2a9

Please sign in to comment.