Simplify skybox parallax code and add support for scaling for larger client.view sizes.

- Hooked up skybox to recalculate it's scaling when the view changes.
 - Added constant defines to clarify where the magic numbers are coming from.
This commit is contained in:
Leshana
2020-03-23 20:19:28 -04:00
parent 888f25cf8e
commit c8d64783cc
2 changed files with 28 additions and 2 deletions
+1
View File
@@ -270,6 +270,7 @@
#define WORLD_ICON_SIZE 32 //Needed for the R-UST port
#define PIXEL_MULTIPLIER WORLD_ICON_SIZE/32 //Needed for the R-UST port
#define MAX_CLIENT_VIEW 34 // Maximum effective value of client.view (According to DM references)
// Maploader bounds indices
#define MAP_MINX 1