From: FruitieX Date: Wed, 13 Apr 2011 10:40:47 +0000 (+0300) Subject: that think function was useless actually, remove it and use draw2d instead X-Git-Tag: xonotic-v0.5.0~289 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=07eb025a72464c410d482abacaca95658119e9cf;p=xonotic%2Fxonotic-data.pk3dir.git that think function was useless actually, remove it and use draw2d instead --- diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index af2dd4687..ee6d050af 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -913,8 +913,7 @@ void Ent_ShowNames() // entity init, TODO can this be done only once somehow? self.the_entnum = ReadByte(); // TODO: fixme to only send once somehow - self.think = ShowNames_Think; - self.nextthink = time; + self.draw2d = Draw_ShowNames; sf = ReadByte(); diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index ca19bf702..d5a35c487 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -72,13 +72,5 @@ void Draw_ShowNames() drawhealthbar(o, rot * 90 * DEG2RAD, self.health, SPRITE_SIZE * t, SPRITE_HOTSPOT * t, SPRITE_HEALTHBAR_WIDTH * t, SPRITE_HEALTHBAR_HEIGHT * t, SPRITE_HEALTHBAR_MARGIN * t, SPRITE_HEALTHBAR_BORDER * t, align, self.teamradar_color, a * SPRITE_HEALTHBAR_BORDERALPHA, self.teamradar_color, a * SPRITE_HEALTHBAR_HEALTHALPHA, DRAWFLAG_NORMAL); } */ - print(vtos(o), "\n"); } } - -void ShowNames_Think() -{ - self.draw2d = Draw_ShowNames; - self.nextthink = time; - print("think!\n"); -}