1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-07 11:17:00 +00:00

hooks_scalefactor (to be used in ads)

This commit is contained in:
Zeno Rogue 2025-02-09 01:02:26 +01:00
parent e69f80c65b
commit 8ba1b97ebe

View File

@ -846,6 +846,8 @@ void geometry_information::prepare_basics() {
floorrad1 = rhexf * (GDIM == 3 ? 1 : .8);
}
callhooks(hooks_scalefactor, this);
plevel = vid.plevel_factor * scalefactor;
single_step = 1;
auto fak = hybrid::underlying == gFake;
@ -932,6 +934,8 @@ void geometry_information::prepare_basics() {
EX purehookset hooks_swapdim;
EX hookset<void(geometry_information*)> hooks_scalefactor;
EX namespace geom3 {
// Here we convert between the following parameters: