Clear "Best:" line before redrawing the hit feed; clear last column of the hit feed
This commit is contained in:
@@ -393,8 +393,8 @@ int readRandomLine(char *file, char *result) {
|
|||||||
|
|
||||||
void trollHitScreen(game_state *gs, hitfeed *hf, int hits) {
|
void trollHitScreen(game_state *gs, hitfeed *hf, int hits) {
|
||||||
if (gs->trollEnabled) {
|
if (gs->trollEnabled) {
|
||||||
char *strings[] = {"Double Hit", "Triple Hit", "Multi Hit", \
|
char *strings[] = {"Double Hit", "Triple Hit", "Multi Hit",
|
||||||
"Ultra Hit", "Monster Hit", "Rampage", \
|
"Ultra Hit", "Monster Hit", "Rampage",
|
||||||
"Unstoppable", "Wicked sick", "Godlike"};
|
"Unstoppable", "Wicked sick", "Godlike"};
|
||||||
int selection[] = {2, 3, 4, 5, 6, 7, 8, 9, 10};
|
int selection[] = {2, 3, 4, 5, 6, 7, 8, 9, 10};
|
||||||
int i, found = 0;
|
int i, found = 0;
|
||||||
@@ -439,8 +439,8 @@ void printHitFeed(game_state *gs, hitfeed *hf) {
|
|||||||
int newMaxy = gs->maxy - HITFEEDSLOTS;
|
int newMaxy = gs->maxy - HITFEEDSLOTS;
|
||||||
int newMaxx = gs->maxx - (gs->centerx / 2);
|
int newMaxx = gs->maxx - (gs->centerx / 2);
|
||||||
int i, z;
|
int i, z;
|
||||||
for (i = 0; i < HITFEEDSLOTS; i++) {
|
for (i = -1; i < HITFEEDSLOTS; i++) {
|
||||||
for (z = 0; z < gs->maxx - newMaxx; z++) {
|
for (z = 0; z <= gs->maxx - newMaxx; z++) {
|
||||||
mvprintw(newMaxy + i, newMaxx + z, " ");
|
mvprintw(newMaxy + i, newMaxx + z, " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user