PadWorld-Entertainment / worldofpadman

World of PADMAN game repository
https://worldofpadman.net
Other
39 stars 9 forks source link

CGAME: Fix incorrect placement of CG_WorldToScreen() #233

Closed zturtleman closed 10 months ago

zturtleman commented 10 months ago

CG_WorldToScreen() needs to return 640x480 coords. The HUD is split into 4:3 left/center/right panels. Convert the real position to whatever the current panel is—which may cause X/Y to be negative or greater than the SCREEN_WIDTH/SCREEN_HEIGHT—but it will convert back fine.

(cg_viewsize still works as well.)

Fixes #228.