fix clouds
This commit is contained in:
parent
62f28cc4ac
commit
25703b04a2
@ -273,8 +273,8 @@ CClouds::Render(void)
|
|||||||
|
|
||||||
for(i = 0; i < 37; i++){
|
for(i = 0; i < 37; i++){
|
||||||
RwV3d pos = { 2.0f*CoorsOffsetX[i], 2.0f*CoorsOffsetY[i], 40.0f*CoorsOffsetZ[i] + 40.0f };
|
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.x = pos.x*rot_cos + pos.y*rot_sin + campos.x;
|
||||||
worldpos.y = campos.x*rot_sin + campos.y*rot_cos + pos.y;
|
worldpos.y = pos.x*rot_sin - pos.y*rot_cos + campos.y;
|
||||||
worldpos.z = pos.z;
|
worldpos.z = pos.z;
|
||||||
if(bCloudOnScreen[i] && CSprite::CalcScreenCoors(worldpos, &screenpos, &szx, &szy, false)){
|
if(bCloudOnScreen[i] && CSprite::CalcScreenCoors(worldpos, &screenpos, &szx, &szy, false)){
|
||||||
// BUG: this is stupid....would have to do this for each cloud individually
|
// BUG: this is stupid....would have to do this for each cloud individually
|
||||||
|
Loading…
Reference in New Issue
Block a user