If you have lots of walls in your vswap so that your floor/ceiling tiles have an ID of 256 or larger,
using only the third plane to store the floor/ceiling values becomes unavailable.
Fortunately you don't need to enable another plane to get the floor/ceiling values right...
Open the wl_floorceiling.cpp and search for this line:
Then search for this line (should be only few lines below):
Now using the wall textures 1-63 as the floor/ceiling will change the floor/ceiling value to 256-318.
So basically now you can have as many floor/ceiling textures with id over 255 as you have walls
in your vswap (remember to change the 64 as the last wall texture you are using).
using only the third plane to store the floor/ceiling values becomes unavailable.
Fortunately you don't need to enable another plane to get the floor/ceiling values right...
Open the wl_floorceiling.cpp and search for this line:
- Code:
unsigned curtoptex = curtex >> 8;
- Code:
if(curtoptex > 0 && curtoptex < 64) curtoptex += 255; //Note: change the 64 to match your last wall texture
Then search for this line (should be only few lines below):
- Code:
unsigned curbottex = curtex & 0xff;
- Code:
if(curbottex > 0 && curbottex < 64) curbottex += 255; //Note: change the 64 to match your last wall texture
Now using the wall textures 1-63 as the floor/ceiling will change the floor/ceiling value to 256-318.
So basically now you can have as many floor/ceiling textures with id over 255 as you have walls
in your vswap (remember to change the 64 as the last wall texture you are using).