1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

ray:: no portal_connections if not needed

This commit is contained in:
Zeno Rogue 2021-10-07 18:23:57 +02:00
parent 43cefcaca1
commit 83da34d6ac

View File

@ -2248,6 +2248,7 @@ struct raycast_map {
bind_array(connections, o->tConnections, txConnections, 3, length); bind_array(connections, o->tConnections, txConnections, 3, length);
bind_array(texturemap, o->tTextureMap, txTextureMap, 5, length); bind_array(texturemap, o->tTextureMap, txTextureMap, 5, length);
if(volumetric::on) bind_array(volumetric, o->tVolumetric, txVolumetric, 6, length); if(volumetric::on) bind_array(volumetric, o->tVolumetric, txVolumetric, 6, length);
if(o->tPortalConnections != -1)
bind_array(portal_connections, o->tPortalConnections, txPortalConnections, 1, length); bind_array(portal_connections, o->tPortalConnections, txPortalConnections, 1, length);
if(o->uMirrorShift != -1) { if(o->uMirrorShift != -1) {