| 56 | } |
| 57 | |
| 58 | void InitQTextMsg(int m) |
| 59 | { |
| 60 | if (alltext[m].scrlltxt) { |
| 61 | questlog = FALSE; |
| 62 | qtextptr = alltext[m].txtstr; |
| 63 | qtextflag = TRUE; |
| 64 | qtexty = 500; |
| 65 | sgLastScroll = qscroll_spd_tbl[alltext[m].txtspd - 1]; |
| 66 | if (sgLastScroll <= 0) |
| 67 | scrolltexty = 50 / -(sgLastScroll - 1); |
| 68 | else |
| 69 | scrolltexty = ((sgLastScroll + 1) * 50) / sgLastScroll; |
| 70 | qtextSpd = SDL_GetTicks(); |
| 71 | } |
| 72 | PlaySFX(alltext[m].sfxnr); |
| 73 | } |
| 74 | |
| 75 | void DrawQTextBack() |
| 76 | { |
no test coverage detected