mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-18 16:32:32 +02:00
correct comprules parsing. Use hex digits
This commit is contained in:
parent
397bc15638
commit
b35188ab94
@ -347,7 +347,7 @@ public:
|
||||
VehicleClass vehicleclass_;
|
||||
int frequency_;
|
||||
int level_;
|
||||
int componentrules_;
|
||||
unsigned long componentrules_;
|
||||
std::string vehiclename_;
|
||||
|
||||
static VehicleType findVehicleType(const std::string& name) {
|
||||
|
@ -129,7 +129,7 @@ bool LoaderIDE::load(const std::string &filename, const PedStatsList &stats) {
|
||||
cars->level_ = std::atoi(buff.c_str());
|
||||
|
||||
getline(strstream, buff, ',');
|
||||
cars->componentrules_ = std::atoi(buff.c_str());
|
||||
cars->componentrules_ = std::stoul(buff, 0, 16);
|
||||
|
||||
switch (cars->vehicletype_) {
|
||||
case VehicleModelInfo::CAR:
|
||||
|
Loading…
Reference in New Issue
Block a user