mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 03:30:00 +00:00
fix clouds
This commit is contained in:
parent
94eed33940
commit
26bbbe0037
|
@ -317,6 +317,7 @@ CFileLoader::LoadCollisionModel(uint8 *buf, CColModel &model, char *modelname)
|
|||
buf += 4;
|
||||
if(model.numLines > 0){
|
||||
//model.lines = (CColLine*)RwMalloc(model.numLines*sizeof(CColLine));
|
||||
REGISTER_MEMPTR(&model.lines);
|
||||
for(i = 0; i < model.numLines; i++){
|
||||
//model.lines[i].Set(*(CVector*)buf, *(CVector*)(buf+12));
|
||||
buf += 24;
|
||||
|
|
|
@ -265,8 +265,8 @@ CClouds::Render(void)
|
|||
|
||||
for(i = 0; i < 37; i++){
|
||||
RwV3d pos = { 2.0f*CoorsOffsetX[i], 2.0f*CoorsOffsetY[i], 40.0f*CoorsOffsetZ[i] + 40.0f };
|
||||
worldpos.x = campos.x*rot_cos + campos.y*rot_sin + pos.x;
|
||||
worldpos.y = campos.x*rot_sin + campos.y*rot_cos + pos.y;
|
||||
worldpos.x = pos.x*rot_cos + pos.y*rot_sin + campos.x;
|
||||
worldpos.y = pos.x*rot_sin + pos.y*rot_cos + campos.y;
|
||||
worldpos.z = pos.z;
|
||||
if(bCloudOnScreen[i] && CSprite::CalcScreenCoors(worldpos, &screenpos, &szx, &szy, false)){
|
||||
if(sundist < SCREEN_WIDTH/3){
|
||||
|
|
Loading…
Reference in a new issue