diff options
author | Gregory Montoir | 2004-01-23 16:58:13 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-01-23 16:58:13 +0000 |
commit | 7bd31d615c0ee1509ca95401e5656449050aca42 (patch) | |
tree | b91c6b134c2d43dfa56ec54def9a1dee2d14c710 /queen/graphics.cpp | |
parent | 7401421b1dcfa2df98738e4c5be875976070cbd8 (diff) | |
download | scummvm-rg350-7bd31d615c0ee1509ca95401e5656449050aca42.tar.gz scummvm-rg350-7bd31d615c0ee1509ca95401e5656449050aca42.tar.bz2 scummvm-rg350-7bd31d615c0ee1509ca95401e5656449050aca42.zip |
change sscanf() calls to atoi() to please PalmOS :)
svn-id: r12582
Diffstat (limited to 'queen/graphics.cpp')
-rw-r--r-- | queen/graphics.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/queen/graphics.cpp b/queen/graphics.cpp index 80de743969..24a0cf571e 100644 --- a/queen/graphics.cpp +++ b/queen/graphics.cpp @@ -586,10 +586,13 @@ void Graphics::setupNewRoom(const char *room, uint16 roomNum, int16 *furniture, void Graphics::fillAnimBuffer(const char *anim, AnimFrame *af) { for (;;) { - sscanf(anim, "%3hu,%3hu", &af->frame, &af->speed); + // anim frame format is "%3hu,%3hu," (frame number, frame speed) + af->frame = atoi(anim); + anim += 4; + af->speed = atoi(anim); + anim += 4; if (af->frame == 0) break; - anim += 8; ++af; } } |