mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-30 16:01:49 +00:00
Fix for infinite loop statusbar functions. This is a big-un. :)
This commit is contained in:
parent
e6c4475eb5
commit
0176f78b9e
1 changed files with 4 additions and 2 deletions
|
@ -170,6 +170,7 @@ void(entity pl) RefreshStatusBar1 =
|
||||||
local string val;
|
local string val;
|
||||||
local float num;
|
local float num;
|
||||||
local entity sent;
|
local entity sent;
|
||||||
|
sent = world;
|
||||||
|
|
||||||
if (pl.StatusBarSize == 0)
|
if (pl.StatusBarSize == 0)
|
||||||
{
|
{
|
||||||
|
@ -184,7 +185,7 @@ void(entity pl) RefreshStatusBar1 =
|
||||||
s1 = GetStatusSize(pl);
|
s1 = GetStatusSize(pl);
|
||||||
|
|
||||||
do
|
do
|
||||||
sent = find(world, classname, "building_sentrygun");
|
sent = find(sent, classname, "building_sentrygun");
|
||||||
while (sent != world && sent.real_owner != self);
|
while (sent != world && sent.real_owner != self);
|
||||||
|
|
||||||
if (sent)
|
if (sent)
|
||||||
|
@ -237,6 +238,7 @@ void(entity pl) RefreshStatusBar4 =
|
||||||
local string val;
|
local string val;
|
||||||
local float num;
|
local float num;
|
||||||
local entity sent;
|
local entity sent;
|
||||||
|
sent = world;
|
||||||
|
|
||||||
if (pl.StatusBarSize == 0)
|
if (pl.StatusBarSize == 0)
|
||||||
{
|
{
|
||||||
|
@ -251,7 +253,7 @@ void(entity pl) RefreshStatusBar4 =
|
||||||
s1 = GetStatusSize(pl);
|
s1 = GetStatusSize(pl);
|
||||||
|
|
||||||
do
|
do
|
||||||
sent = find(world, classname, "building_tesla");
|
sent = find(sent, classname, "building_tesla");
|
||||||
while (sent != world && sent.real_owner != self);
|
while (sent != world && sent.real_owner != self);
|
||||||
|
|
||||||
if (sent)
|
if (sent)
|
||||||
|
|
Loading…
Reference in a new issue