1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 13:07:16 +00:00

bringris:: leaderboards

This commit is contained in:
Zeno Rogue 2024-08-24 15:53:43 +02:00
parent a9c0277006
commit b236fd38f3

View File

@ -48,6 +48,13 @@
#include "../hyper.h"
#ifdef RVCOL
namespace hr {
void rv_achievement(const string& name);
void rv_leaderboard(const string& name, int score);
}
#endif
#define solnil (nil || sol)
namespace hr {
@ -730,6 +737,8 @@ void new_piece() {
if(shape_conflict(at)) {
playSound(cwt.at, "die-bomberbird");
state = tsGameover;
if(pro_game && max_piece == 4)
rv_leaderboard(bgeoms[bgeom].name, score);
}
else {
draw_shape();