src/strings.cpp
changeset 7554 076c42f44a83
parent 7552 064d734e9900
child 7555 e20900912fa2
equal deleted inserted replaced
7553:bb88bdf61f6d 7554:076c42f44a83
   875 			}
   875 			}
   876 
   876 
   877 			case SCC_SIGN_NAME: { // {SIGN}
   877 			case SCC_SIGN_NAME: { // {SIGN}
   878 				const Sign *si = GetSign(GetInt32(&argv));
   878 				const Sign *si = GetSign(GetInt32(&argv));
   879 				buff = GetString(buff, si->str, last);
   879 				buff = GetString(buff, si->str, last);
       
   880 				break;
       
   881 			}
       
   882 
       
   883 			case SCC_COMPANY_NAME: { // {COMPANY}
       
   884 				const Player *p = GetPlayer((PlayerID)GetInt32(&argv));
       
   885 				int64 args[1];
       
   886 				args[0] = p->name_2;
       
   887 				buff = GetStringWithArgs(buff, p->name_1, args, last);
       
   888 				break;
       
   889 			}
       
   890 
       
   891 			case SCC_COMPANY_NUM: { // {COMPANYNUM}
       
   892 				PlayerID player = (PlayerID)GetInt32(&argv);
       
   893 
       
   894 				/* Nothing is added for AI or inactive players */
       
   895 				if (IsHumanPlayer(player) && IsValidPlayer(player)) {
       
   896 					int64 args[1];
       
   897 					args[0] = player + 1;
       
   898 					buff = GetStringWithArgs(buff, STR_7002_PLAYER, args, last);
       
   899 				}
       
   900 				break;
       
   901 			}
       
   902 
       
   903 			case SCC_PLAYER_NAME: { // {PLAYERNAME}
       
   904 				const Player *p = GetPlayer((PlayerID)GetInt32(&argv));
       
   905 				int64 args[1];
       
   906 				args[0] = p->president_name_2;
       
   907 				buff = GetStringWithArgs(buff, p->president_name_1, args, last);
   880 				break;
   908 				break;
   881 			}
   909 			}
   882 
   910 
   883 			case SCC_SETCASE: { // {SETCASE}
   911 			case SCC_SETCASE: { // {SETCASE}
   884 				/* This is a pseudo command, it's outputted when someone does {STRING.ack}
   912 				/* This is a pseudo command, it's outputted when someone does {STRING.ack}