ttd.c
changeset 795 d3dc1a63e57f
parent 774 bb9ec520a1b1
child 802 2bd6011b28e8
equal deleted inserted replaced
794:dd738f61acc3 795:d3dc1a63e57f
  1301 	switch(i) {
  1301 	switch(i) {
  1302 	case 0:
  1302 	case 0:
  1303 		*(byte*)0 = 0;
  1303 		*(byte*)0 = 0;
  1304 		break;
  1304 		break;
  1305 	case 1:
  1305 	case 1:
  1306 		DoCommandP(0, -10000000, 0, NULL, CMD_MONEY_CHEAT);
  1306 		/* Server can not cheat in advertise mode either! */
       
  1307 		if (!_networking || !_network_server || !_network_advertise)
       
  1308 			DoCommandP(0, -10000000, 0, NULL, CMD_MONEY_CHEAT);
  1307 		break;
  1309 		break;
  1308 	case 2:
  1310 	case 2:
  1309 		UpdateAllStationVirtCoord();
  1311 		UpdateAllStationVirtCoord();
  1310 		break;
  1312 		break;
  1311 	}
  1313 	}