Make use of the new -[OFString intValue]
FossilOrigin-Name: 09eb96f3397daee11cfda5cbbbcc5caa6d3d9fb9ff3eeb07971e8e3773b65dd6
This commit is contained in:
parent
5a033ec827
commit
f1968ce5af
10 changed files with 35 additions and 36 deletions
|
@ -63,9 +63,9 @@ reloadtime(int gun)
|
|||
void
|
||||
weapon(OFString *a1, OFString *a2, OFString *a3)
|
||||
{
|
||||
selectgun((a1.length > 0 ? (int)a1.longLongValue : -1),
|
||||
(a2.length > 0 ? (int)a2.longLongValue : -1),
|
||||
(a3.length > 0 ? (int)a3.longLongValue : -1));
|
||||
selectgun((a1.length > 0 ? a1.intValue : -1),
|
||||
(a2.length > 0 ? a2.intValue : -1),
|
||||
(a3.length > 0 ? a3.intValue : -1));
|
||||
}
|
||||
COMMAND(weapon, ARG_3STR)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue