mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 05:19:43 +00:00
undo: commented stuff to make model preview 'work'
This commit is contained in:
parent
0e73f8bc3c
commit
a2bbf856bf
22
PCGfx.cpp
22
PCGfx.cpp
@ -100,16 +100,22 @@ void PCGfx_DoModelPreview(void)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
i32 v24[40];
|
||||
|
||||
for (i32 j = 0; j < freeIndex; j++)
|
||||
{
|
||||
// @FIXME
|
||||
// remove
|
||||
break;
|
||||
|
||||
i32 v8 = PSXRegion[j].pPSX[2];
|
||||
v24[j] = v8;
|
||||
totalSomething += v8;
|
||||
}
|
||||
|
||||
if (totalSomething && freeIndex)
|
||||
//if (totalSomething && freeIndex)
|
||||
if (true)
|
||||
{
|
||||
PCGfx_SetSkyColor(0xFF800080);
|
||||
i32 idx = 0;
|
||||
@ -117,6 +123,8 @@ void PCGfx_DoModelPreview(void)
|
||||
i32 v9;
|
||||
for (v9 = 0; v9 < freeIndex; v9++)
|
||||
{
|
||||
//@FIXME
|
||||
break;
|
||||
if (v24[v9] > 0)
|
||||
{
|
||||
if (!PSXRegion[v9].IsSuper)
|
||||
@ -130,9 +138,12 @@ void PCGfx_DoModelPreview(void)
|
||||
}
|
||||
}
|
||||
|
||||
//@FIXME
|
||||
/*
|
||||
gMikeCamera[0].Position.vx = SuperItem->mPos.vx >> 12;
|
||||
gMikeCamera[0].Position.vy = SuperItem->mPos.vy >> 12;
|
||||
gMikeCamera[0].Position.vz = (SuperItem->mPos.vz >> 12) - 1;
|
||||
*/
|
||||
|
||||
gMikeCamera[0].Angles.vx = 0;
|
||||
gMikeCamera[0].Angles.vy = 0;
|
||||
@ -232,6 +243,8 @@ void PCGfx_DoModelPreview(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
// @FIXME
|
||||
/*
|
||||
if (doModelSwap)
|
||||
{
|
||||
if (PSXRegion[SuperItem->mRegion].IsSuper)
|
||||
@ -265,6 +278,7 @@ void PCGfx_DoModelPreview(void)
|
||||
modelTickUpdate = GetTickCount();
|
||||
doModelSwap = 0;
|
||||
}
|
||||
*/
|
||||
|
||||
PCGfx_RenderModelPreview(SuperItem, PSXRegion[v9].Filename, idx);
|
||||
}
|
||||
@ -638,12 +652,18 @@ void PCGfx_RenderModelPreview(
|
||||
Mess_DrawText(20, 45, v3, 0, 0x1000u);
|
||||
|
||||
CItem* pItem = static_cast<CItem*>(a1);
|
||||
// @FIXME
|
||||
sprintf(
|
||||
v3,
|
||||
"ITM: shit");
|
||||
/*
|
||||
sprintf(
|
||||
v3,
|
||||
"ITM: %i %i %i",
|
||||
pItem->mPos.vx >> 12,
|
||||
pItem->mPos.vy >> 12,
|
||||
pItem->mPos.vz >> 12);
|
||||
*/
|
||||
Mess_DrawText(220, 45, v3, 0, 0x1000u);
|
||||
|
||||
PCGfx_EndScene(1);
|
||||
|
2
main.cpp
2
main.cpp
@ -1,6 +1,6 @@
|
||||
#include "non_win32.h"
|
||||
|
||||
#define BOOT_GAME
|
||||
// #define BOOT_GAME
|
||||
#define MODEL_PREVIEW
|
||||
|
||||
#include "main.h"
|
||||
|
@ -779,6 +779,9 @@ void spideyLog(char *,...)
|
||||
// understand ppModels
|
||||
void Spidey_CopyHeadModel(i32 Region)
|
||||
{
|
||||
// @FIXME
|
||||
return;
|
||||
|
||||
if (!gSpideyHeadModel)
|
||||
{
|
||||
u16 * ptr = static_cast<u16*>(PSXRegion[Region].ppModels[7]);
|
||||
|
Loading…
Reference in New Issue
Block a user