summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-25 18:31:34 +0000
committerxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-25 18:31:34 +0000
commit71693d0f15245dd87b243b0feaa2737f9525b8cb (patch)
tree967ac6d3ab6b9977e0aae594ab9259e6d9635a48 /src/map/atcommand.c
parent11c2d016d40070f1895d88c0eb7bb88079555cfd (diff)
downloadhercules-71693d0f15245dd87b243b0feaa2737f9525b8cb.tar.gz
hercules-71693d0f15245dd87b243b0feaa2737f9525b8cb.tar.bz2
hercules-71693d0f15245dd87b243b0feaa2737f9525b8cb.tar.xz
hercules-71693d0f15245dd87b243b0feaa2737f9525b8cb.zip
* Replaced rand() calls with rnd().
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15975 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index d5a8e75e0..6ad69e5e3 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6251,7 +6251,7 @@ ACMD_FUNC(pettalk)
};
int i;
ARR_FIND( 0, ARRAYLENGTH(emo), i, stricmp(message, emo[i]) == 0 );
- if( i == E_DICE1 ) i = rand()%6 + E_DICE1; // randomize /dice
+ if( i == E_DICE1 ) i = rnd()%6 + E_DICE1; // randomize /dice
if( i < ARRAYLENGTH(emo) )
{
if (sd->emotionlasttime + 1 >= time(NULL)) { // not more than 1 per second