mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-09 15:47:43 +00:00
Link CTweakPlayerControl
This commit is contained in:
@@ -7,7 +7,7 @@ CTweakPlayerControl::~CTweakPlayerControl() {}
|
||||
rstl::reserved_vector< ControlMapper::EFunctionList, 67 > LoadMappings(CInputStream& in) {
|
||||
rstl::reserved_vector< ControlMapper::EFunctionList, 67 > result;
|
||||
for (int i = 0; i < result.capacity(); ++i) {
|
||||
result.push_back(static_cast<ControlMapper::EFunctionList>(in.ReadLong()));
|
||||
result.push_back(static_cast< ControlMapper::EFunctionList >(in.ReadLong()));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -18,6 +18,6 @@ ControlMapper::EFunctionList
|
||||
CTweakPlayerControl::GetMapping(ControlMapper::ECommands command) const {
|
||||
if (command < ControlMapper::kC_Forward || command > ControlMapper::kC_UNKNOWN - 1)
|
||||
return m_mappings[0];
|
||||
|
||||
|
||||
return m_mappings[command];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user