mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-18 01:51:39 +00:00
move dupenum declaration to beginning of block
This commit is contained in:
parent
a73f468ea4
commit
e849c9898e
1 changed files with 1 additions and 1 deletions
|
@ -814,6 +814,7 @@ static void readskincolor(MYFILE *f, INT32 num)
|
||||||
{
|
{
|
||||||
size_t lastchar = strlen(truncword);
|
size_t lastchar = strlen(truncword);
|
||||||
char oldword[lastchar+1];
|
char oldword[lastchar+1];
|
||||||
|
char dupenum = '1';
|
||||||
|
|
||||||
strlcpy(oldword, truncword, lastchar+1);
|
strlcpy(oldword, truncword, lastchar+1);
|
||||||
lastchar--;
|
lastchar--;
|
||||||
|
@ -825,7 +826,6 @@ static void readskincolor(MYFILE *f, INT32 num)
|
||||||
lastchar++;
|
lastchar++;
|
||||||
}
|
}
|
||||||
|
|
||||||
char dupenum = '1';
|
|
||||||
while (R_GetColorByName(truncword))
|
while (R_GetColorByName(truncword))
|
||||||
{
|
{
|
||||||
truncword[lastchar] = dupenum;
|
truncword[lastchar] = dupenum;
|
||||||
|
|
Loading…
Reference in a new issue