mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-18 06:30:41 +00:00
bringris:: leaderboards
This commit is contained in:
parent
a9c0277006
commit
b236fd38f3
@ -48,6 +48,13 @@
|
|||||||
|
|
||||||
#include "../hyper.h"
|
#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)
|
#define solnil (nil || sol)
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
@ -730,6 +737,8 @@ void new_piece() {
|
|||||||
if(shape_conflict(at)) {
|
if(shape_conflict(at)) {
|
||||||
playSound(cwt.at, "die-bomberbird");
|
playSound(cwt.at, "die-bomberbird");
|
||||||
state = tsGameover;
|
state = tsGameover;
|
||||||
|
if(pro_game && max_piece == 4)
|
||||||
|
rv_leaderboard(bgeoms[bgeom].name, score);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
draw_shape();
|
draw_shape();
|
||||||
|
Loading…
Reference in New Issue
Block a user