| 508 | } |
| 509 | |
| 510 | void enqueueCaption(const ConsoleArgList& args) |
| 511 | { |
| 512 | if (args.size() < 2) { return; } |
| 513 | |
| 514 | Caption caption; |
| 515 | caption.text = args[1]; |
| 516 | caption.env = CC_CUTSCENE; |
| 517 | caption.microsecondsRemaining = calculateDuration(caption.text); |
| 518 | caption.type = CC_VOICE; |
| 519 | |
| 520 | enqueueCaption(caption); |
| 521 | } |
| 522 | |
| 523 | void enqueueCaption(Caption caption) |
| 524 | { |
no test coverage detected