mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-09 22:00:33 +00:00
Ped: WeaponInfo: little fixes and renamings
This commit is contained in:
parent
498d3a49ac
commit
dc96a49dfd
2 changed files with 5 additions and 6 deletions
|
@ -76,10 +76,9 @@ CWeaponInfo::LoadWeaponData(void)
|
|||
line[linelen] = '\0';
|
||||
|
||||
// skip white space
|
||||
for (lp = 0; line[lp] <= ' '; lp++);
|
||||
for (lp = 0; line[lp] <= ' ' && line[lp] != '\0'; lp++);
|
||||
|
||||
if (lp >= linelen || // FIX: game uses == here, but this is safer if we have empty lines
|
||||
line[lp] == '#')
|
||||
if (line[lp] == '\0' || line[lp] == '#')
|
||||
continue;
|
||||
|
||||
spread = 0.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue