diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 12:51:25 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:17 +0000 |
commit | 5d8ace116036484f60257c7534e349003d90f7aa (patch) | |
tree | 999d166fe4bb82edac7ad9d9a5af38ca0623bfbb | |
parent | b968783fd19938474c1b4867ff37dd5e36af06b0 (diff) |
/give funds should accept non-integral arguments
woo one line commit woo
-rw-r--r-- | src/game/g_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index f3f793b2..02c35643 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -364,7 +364,7 @@ void Cmd_Give_f( gentity_t *ent ) if( give_all || Q_stricmpn( name, "funds", 5 ) == 0 ) { - int credits = atoi( name + 6 ); + float credits = atof( name + 6 ); if( ent->client->pers.teamSelection == TEAM_ALIENS ) credits *= ALIEN_CREDITS_PER_KILL; |