Skip to content

Commit

Permalink
* Add value for repairPoints to stats file and read it in
Browse files Browse the repository at this point in the history
  • Loading branch information
kreuvf committed Aug 3, 2014
1 parent 583903b commit fd822ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/mp/stats/functions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ VehicleRepair Upgrade,Sys-Autorepair-Vehicle-Upgrade02,20
VehicleSensor Upgrade,Sys-Sensor-Upgrade01,0,25
VehicleSensor Upgrade,Sys-Sensor-Upgrade02,0,40
VehicleSensor Upgrade,Sys-Sensor-Upgrade03,0,50
ReArm,ReArm,10
ReArm,ReArm,10,25
ReArm Upgrade,ReArmUpgrade,1
ReArm Upgrade,Struc-VTOLPad-Upgrade01,30
ReArm Upgrade,Struc-VTOLPad-Upgrade02,60
Expand Down
2 changes: 1 addition & 1 deletion src/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static bool loadReArmFunction(const char *pData)

//read the data in
functionName[0] = '\0';
sscanf(pData, "%255[^,'\r\n],%d", functionName, &psFunction->reArmPoints);
sscanf(pData, "%255[^,'\r\n],%d,%d", functionName, &psFunction->reArmPoints, &psFunction->repairPoints);

//allocate storage for the name
storeName((FUNCTION *)psFunction, functionName);
Expand Down

0 comments on commit fd822ee

Please sign in to comment.