mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-04 08:10:00 +00:00
signed/unsigned fixes, and some other fixes
This commit is contained in:
parent
c5010d443c
commit
36e64dbd22
13 changed files with 48 additions and 43 deletions
|
@ -936,12 +936,12 @@ CVisibilityPlugins::FrameCopyConstructor(void *dst, const void *src, int32, int3
|
|||
}
|
||||
|
||||
void
|
||||
CVisibilityPlugins::SetFrameHierarchyId(RwFrame *frame, uintptr id)
|
||||
CVisibilityPlugins::SetFrameHierarchyId(RwFrame *frame, intptr id)
|
||||
{
|
||||
FRAMEEXT(frame)->id = id;
|
||||
}
|
||||
|
||||
uintptr
|
||||
intptr
|
||||
CVisibilityPlugins::GetFrameHierarchyId(RwFrame *frame)
|
||||
{
|
||||
return FRAMEEXT(frame)->id;
|
||||
|
@ -978,7 +978,7 @@ void
|
|||
CVisibilityPlugins::SetClumpModelInfo(RpClump *clump, CClumpModelInfo *modelInfo)
|
||||
{
|
||||
CVehicleModelInfo *vmi;
|
||||
SetFrameHierarchyId(RpClumpGetFrame(clump), (uintptr)modelInfo);
|
||||
SetFrameHierarchyId(RpClumpGetFrame(clump), (intptr)modelInfo);
|
||||
|
||||
// Unused
|
||||
switch (modelInfo->GetModelType()) {
|
||||
|
|
|
@ -103,10 +103,10 @@ public:
|
|||
struct FrameExt
|
||||
{
|
||||
// BUG: this is abused to hold a pointer by SetClumpModelInfo
|
||||
uintptr id;
|
||||
intptr id;
|
||||
};
|
||||
static void SetFrameHierarchyId(RwFrame *frame, uintptr id);
|
||||
static uintptr GetFrameHierarchyId(RwFrame *frame);
|
||||
static void SetFrameHierarchyId(RwFrame *frame, intptr id);
|
||||
static intptr GetFrameHierarchyId(RwFrame *frame);
|
||||
|
||||
static void *FrameConstructor(void *object, int32 offset, int32 len);
|
||||
static void *FrameDestructor(void *object, int32 offset, int32 len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue