1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-21 18:23:15 +00:00

limited messages displayed to 5

This commit is contained in:
Zeno Rogue 2017-08-13 21:21:57 +02:00
parent 940b3b28f1
commit 496060d0b4

View File

@ -766,7 +766,7 @@ void drawmessages() {
DEBB(DF_GRAPH, (debugfile,"draw messages\n"));
int i = 0;
int t = ticks;
for(int j=0; j<size(msgs); j++) {
for(int j=0; j<size(msgs) && j<5; j++) {
int age = msgs[j].flashout * (t - msgs[j].stamp);
if(msgs[j].spamtype) {
for(int i=j+1; i<size(msgs); i++) if(msgs[i].spamtype == msgs[j].spamtype)