Skip to content
This repository has been archived by the owner. It is now read-only.

garages #372

Merged
merged 11 commits into from Mar 31, 2020
Merged

garages #372

merged 11 commits into from Mar 31, 2020

Conversation

@Nick007J
Copy link
Contributor

@Nick007J Nick007J commented Mar 30, 2020

No description provided.

if (FindPlayerPed()->m_objective == OBJECTIVE_LEAVE_VEHICLE)
return false;
CVehicle* pVehicle = FindPlayerVehicle();
if (pVehicle->GetPosition().x < m_fX1)

This comment has been minimized.

@aap

aap Mar 31, 2020
Member

maybe put x,y,z together with || ?. also in all the other places

@@ -181,7 +182,7 @@ class CGarages
static int32 &CrushedCarId;
static uint32 &LastTimeHelpMessage;
static int32 &MessageNumberInString;
static const char *MessageIDString;
static char(&MessageIDString)[8];

This comment has been minimized.

@ghost

ghost Mar 31, 2020

define or enum in config.h?

@ghost
ghost approved these changes Mar 31, 2020
Copy link

@ghost ghost left a comment

+1 for aap's suggestion

return;
float posX = pVehicle->GetPosition().x;
float posY = pVehicle->GetPosition().y;
float posZ = pVehicle->GetPosition().z;

This comment has been minimized.

@erorcun

erorcun Mar 31, 2020
Collaborator

wouldn't CVector better in here

@Nick007J Nick007J merged commit 8ff8a4d into GTAmodding:master Mar 31, 2020
1 check passed
1 check passed
@appveyor
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants