=============
*/
.entity chatbubbleentity;
+.string netname_previous;
void ReadyCount();
void ClientDisconnect(entity this)
{
MUTATOR_CALLHOOK(ClientDisconnect, this);
- if (CS(this).netname_previous) strunzone(CS(this).netname_previous); // needs to be before the CS entity is removed!
+ if (this.netname_previous) strunzone(this.netname_previous); // needs to be before the CS entity is removed!
ClientState_detach(this);
Portal_ClearAll(this);
zoomstate_set = false;
// Check for nameless players
- if (this.netname == "" || this.netname != CS(this).netname_previous)
+ if (this.netname == "" || this.netname != this.netname_previous)
{
if (isInvisibleString(this.netname))
{
if (autocvar_sv_eventlog) {
GameLogEcho(strcat(":name:", ftos(this.playerid), ":", playername(this, false)));
}
- if (CS(this).netname_previous) strunzone(CS(this).netname_previous);
- CS(this).netname_previous = strzone(this.netname);
+ if (this.netname_previous) strunzone(this.netname_previous);
+ this.netname_previous = strzone(this.netname);
}
// version nagging