Author Topic: Friendicons - eXt. 2.7 - Bug?  (Read 198 times)

Offline {NADF}Geronimo

  • Rank: Private
  • *
  • Posts: 65
Friendicons - eXt. 2.7 - Bug?
« on: August 14, 2011, 06:33:23 pm »
HI Pat!

It's me again, to let you check another part of the  source code  :D

File: _friendicons.gsc
Started in: onPlayerSpawned()

It is called a thread: self thread showFriendIcon();

But the thread has no  "endon XXX", so it could run without dieying.

Code: [Select]
showFriendIcon()
{
if(level.drawfriend)
{
if(level.ex_ranksystem)
{
self.headicon = self thread extreme\_ex_ranksystem::getHeadIcon();
self.headiconteam = self.pers["team"];
}
else
{
if(self.pers["team"] == "allies")
{
self.headicon = game["headicon_allies"];
self.headiconteam = "allies";
}
else
{
self.headicon = game["headicon_axis"];
self.headiconteam = "axis";
}
}
}
else
{
self.headicon = "";
self.headiconteam = "";
}
}

Please confirm, if it's a bug or not. Thanks a lot!

Regards,
{NADF}Geronimo

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Friendicons - eXt. 2.7 - Bug?
« Reply #1 on: August 15, 2011, 05:45:37 am »
A missing "endon" doesn't necessarily make it a bug. This thread is called directly after spawning, and is already dead and buried when the player disconnects.