Skip to content

Commit

Permalink
Spaces instead of tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
darkshade9 committed Mar 2, 2024
1 parent aa8229a commit a1fa1e4
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions source/p_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,27 +355,27 @@ void Announce_Reward(edict_t *ent, int rewardType) {
char *soundFile;
char *playername = ent->client->pers.netname;

switch (rewardType) {
case ACCURACY:
if (ent->client->resp.streakHS/3 >= 2) {
sprintf(buf,"ACCURACY %s (%dx)!", playername, ent->client->resp.streakHS/3);
} else {
sprintf(buf,"ACCURACY %s!", playername);
}
soundFile = "tng/accuracy.wav";
break;
case IMPRESSIVE:
if (ent->client->resp.streakKills/5 >= 2) {
sprintf(buf,"IMPRESSIVE %s (%dx)!", playername, ent->client->resp.streakKills/5);
} else {
sprintf(buf,"IMPRESSIVE %s!", playername);
}
soundFile = "tng/impressive.wav";
break;
case EXCELLENT:
sprintf(buf,"EXCELLENT %s (%dx)!", playername, ent->client->resp.streakKills/12);
soundFile = "tng/excellent.wav";
break;
switch (rewardType) {
case ACCURACY:
if (ent->client->resp.streakHS/3 >= 2) {
sprintf(buf,"ACCURACY %s (%dx)!", playername, ent->client->resp.streakHS/3);
} else {
sprintf(buf,"ACCURACY %s!", playername);
}
soundFile = "tng/accuracy.wav";
break;
case IMPRESSIVE:
if (ent->client->resp.streakKills/5 >= 2) {
sprintf(buf,"IMPRESSIVE %s (%dx)!", playername, ent->client->resp.streakKills/5);
} else {
sprintf(buf,"IMPRESSIVE %s!", playername);
}
soundFile = "tng/impressive.wav";
break;
case EXCELLENT:
sprintf(buf,"EXCELLENT %s (%dx)!", playername, ent->client->resp.streakKills/12);
soundFile = "tng/excellent.wav";
break;
case DOMINATING:
sprintf(buf,"%s IS DOMINATING!", playername);
soundFile = "radio/male/deliv3.wav";
Expand Down

0 comments on commit a1fa1e4

Please sign in to comment.