bug fixes (again)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6219 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+6
-2
@@ -617,9 +617,13 @@ struct medalsst {bool assigned; int cn; int item;};
|
||||
#define MAXKILLMSGLEN 16
|
||||
extern char fragmessages[NUMGUNS][MAXKILLMSGLEN];
|
||||
extern char gibmessages[NUMGUNS][MAXKILLMSGLEN];
|
||||
extern inline char *killmessage(int gun, bool gib);
|
||||
inline char *killmessage(int gun, bool gib = false)
|
||||
{
|
||||
if(gib) return gibmessages[gun];
|
||||
else return fragmessages[gun];
|
||||
}
|
||||
|
||||
// deprecated ?!
|
||||
// TODO : remove when custom kill messages feature is finished (2011apr06,lucas)
|
||||
inline const char * gib_message(int gun)
|
||||
{
|
||||
switch (gun)
|
||||
|
||||
+1
-7
@@ -498,10 +498,4 @@ const char *teamnames_s[TEAM_NUM+1] = {"CLA", "RVSF", "CSPC", "RSPC", "SPEC", "v
|
||||
// for both client and server
|
||||
// default messages are hardcoded ! (in case there's a problem with cfgs)
|
||||
char fragmessages[NUMGUNS][MAXKILLMSGLEN] = { "", "busted", "shredded", "peppered", "sprayed", "punctured", "picked off", "busted", "", "busted" };
|
||||
char gibmessages[NUMGUNS][MAXKILLMSGLEN] = { "slashed", "", "", "splattered", "", "headshot", "", "", "gibbed", "" };
|
||||
|
||||
inline char *killmessage(int gun, bool gib = false)
|
||||
{
|
||||
if(gib) return gibmessages[gun];
|
||||
else return fragmessages[gun];
|
||||
}
|
||||
char gibmessages[NUMGUNS][MAXKILLMSGLEN] = { "slashed", "", "", "splattered", "", "headshot", "", "", "gibbed", "" };
|
||||
@@ -905,8 +905,7 @@ struct killmessagesfile : serverconfigfile
|
||||
l = p; p += strlen(p) + 1;
|
||||
l = strtok(l, sep);
|
||||
|
||||
|
||||
char *message = "";
|
||||
char *message;
|
||||
if(l)
|
||||
{
|
||||
s = strtok(NULL, sep);
|
||||
|
||||
Reference in New Issue
Block a user