Skip to content

Commit

Permalink
Added version number to connection message
Browse files Browse the repository at this point in the history
  • Loading branch information
theastropath committed Oct 25, 2022
1 parent b374668 commit f09cf79
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Classes/UT99CrowdControlLink.uc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ var int reconnectTimer;
var string pendingMsg;
var bool enabled;

var string version;

const Success = 0;
const Failed = 1;
const NotAvail = 2;
Expand All @@ -24,6 +26,9 @@ const ReconDefault = 5;
function Init(CrowdControl cc, string addr)
{

//UPDATE VERSION EACH RELEASE!
version = "v1.1.0";

ccModule = cc;
crowd_control_addr = addr;
enabled = True;
Expand Down Expand Up @@ -195,7 +200,7 @@ function ManualReceiveBinary() {

}
event Opened(){
ccModule.BroadCastMessage("Crowd Control connection opened");
ccModule.BroadCastMessage("Crowd Control ("$version$") connection opened");
}

event Closed(){
Expand Down

0 comments on commit f09cf79

Please sign in to comment.