signs.c
changeset 1820 d03c56850dc2
parent 1793 b9a37c98b468
child 1835 cc258885d631
equal deleted inserted replaced
1819:b352924c4a27 1820:d03c56850dc2
   140 
   140 
   141 	/* If GetDParam(0) != 0 means the new text for the sign is non-empty.
   141 	/* If GetDParam(0) != 0 means the new text for the sign is non-empty.
   142 	 * So rename the sign. If it is empty, it has no name, so delete it */
   142 	 * So rename the sign. If it is empty, it has no name, so delete it */
   143 	if (GetDParam(0) != 0) {
   143 	if (GetDParam(0) != 0) {
   144 		/* Create the name */
   144 		/* Create the name */
   145 		StringID str = AllocateName((const char*)_decode_parameters, 0);
   145 		StringID str = AllocateName(_cmd_text, 0);
   146 		if (str == 0) return CMD_ERROR;
   146 		if (str == 0) return CMD_ERROR;
   147 
   147 
   148 		if (flags & DC_EXEC) {
   148 		if (flags & DC_EXEC) {
   149 			ss = GetSign(p1);
   149 			ss = GetSign(p1);
   150 
   150