1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 11:30:35 +00:00
Commit Graph

16 Commits

Author SHA1 Message Date
Arthur O'Dwyer
62629f3e70 Change static const to static constexpr wherever possible
Since we require C++11, most of these consts can be constexpr.

Two `static const ld` remain non-compile-time-evaluable because
they depend on the runtime `log` function. One `static const cld`
remains non-compile-time because `std::complex<T>` doesn't become
constexpr until C++14.
2023-08-23 09:47:28 -08:00
Zeno Rogue
bb22d363c8 improved dhrg::logistic 2023-08-22 20:03:17 +02:00
Arthur O'Dwyer
10d0ed8900 Eliminate calls to sprintf
Apple Xcode has started giving `-Wdeprecated-declarations` warnings
for `sprintf`, and suggesting that people migrate to `snprintf` instead.
This is silly, but the warnings are spam and need to be silenced
somehow. Migrating to `snprintf` and/or `hr::format` is the path of
least resistance.
2023-08-21 10:18:44 -07:00
Arthur O'Dwyer
ced3bbcad4 Qualify calls to format
C++20 introduces `std::format` and we `using namespace std`,
so some of these would be ambiguous in C++20.
2023-08-21 10:18:44 -07:00
Zeno Rogue
8a5e768b51 rogueviz::dhrg::loglik:: max steps 2023-01-08 16:03:20 +01:00
Zeno Rogue
06523e063e used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 2022-11-13 16:22:55 +01:00
Zeno Rogue
1cbaf36698 added guards to dhrg.h 2022-11-04 23:53:13 +01:00
Zeno Rogue
d4ea078f7f DHRG not exports some things 2022-08-23 21:52:36 +02:00
Zeno Rogue
cfad696d4a rogueviz::dhrg:: fixed some confusion 2022-08-07 03:16:24 +02:00
Zeno Rogue
e9bb38d3b1 rogueviz::dhrg:: export some functions 2022-07-23 15:45:42 +02:00
Zeno Rogue
67267cbe6b rogueviz::dhrg::routing:: export some functions 2022-07-23 15:44:31 +02:00
Zeno Rogue
cd58923454 rogueviz::dhrg:: improved cleanup 2022-07-23 15:43:26 +02:00
Zeno Rogue
57f9e3efb6 rogueviz:: easier to leave show_likelihood 2022-07-23 15:42:58 +02:00
Zeno Rogue
10f1559da0 fixup 2022-07-23 15:42:42 +02:00
Zeno Rogue
96b335e465 rogueviz::dhrg:: panning enable in show_likelihood 2022-07-23 15:42:33 +02:00
Zeno Rogue
9a916f1ef3 rogueviz:: added DHRG 2022-07-12 14:46:31 +02:00