- switch(sv.protocol)
- {
- case PROTOCOL_QUAKE: protocolname = sv.netquakecompatible ? "QUAKE" : "QUAKEDP";break;
- case PROTOCOL_DARKPLACES1: protocolname = "PROTOCOL_DARKPLACES1";break;
- case PROTOCOL_DARKPLACES2: protocolname = "PROTOCOL_DARKPLACES2";break;
- case PROTOCOL_DARKPLACES3: protocolname = "PROTOCOL_DARKPLACES3";break;
- case PROTOCOL_DARKPLACES4: protocolname = "PROTOCOL_DARKPLACES4";break;
- case PROTOCOL_DARKPLACES5: protocolname = "PROTOCOL_DARKPLACES5";break;
- case PROTOCOL_DARKPLACES6: protocolname = "PROTOCOL_DARKPLACES6";break;
- default: protocolname = "PROTOCOL_UNKNOWN";break;
- }
- print ("protocol: %i (%s)\n", sv.protocol, protocolname);
+ print ("protocol: %i (%s)\n", Protocol_NumberForEnum(sv.protocol), Protocol_NameForEnum(sv.protocol));