- move triage code to the folders of its binary neighbours (AreaList, movement packet types, CClientObjCreate, CWOWClientStatus, SHA1, Clamp, EmergencyMem, MippedImg, WowMouse, ...) - merge HMAC template, OnGxRestartClearWorld and TIMESTAMPSTRUCT into their natural headers - delete superseded duplicates and unk-only placeholders - tools: drop Triage library, fix Streaming stub signatures, remove stubs now provided by BlizzardCore, MapViewer s_liquidTypeId Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
12 lines
301 B
C++
12 lines
301 B
C++
#include "Engine/Source/Base/Clamp.h"
|
|
|
|
// VERIFY: c8057e49 manual
|
|
// OFFSET: 0x005C59F0
|
|
int32_t Clamp(int32_t value, int32_t low, int32_t high) {
|
|
if (static_cast<uint32_t>(value - low) > static_cast<uint32_t>(high - low)) {
|
|
value = value - low < 0 ? low : high;
|
|
}
|
|
|
|
return value;
|
|
}
|