From 380ff1b2d1a1e9057abd1f21884eb78702e7b73a Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sat, 17 Nov 2018 20:30:38 +0800 Subject: speak_words --- csrc/drawing.c | 2 +- csrc/font.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/csrc/drawing.c b/csrc/drawing.c index 9e720eb..78fd403 100644 --- a/csrc/drawing.c +++ b/csrc/drawing.c @@ -328,7 +328,7 @@ void player_say(int p, int t, const char *s) fullscreen_overlay(sfdesc1.lpSurface, data_0207->chunk_tab[nn - 1], 240, 130); if (esi == 5) { eax = (s[1] - '0') * 1000 + (s[2] - '0') * 100 + (s[3] - '0') * 10 + (s[4] - '0'); - fcn.0045441a(eax); + speak_words(eax); } } else { draw_some_text(0, s, 200, 130, 5); diff --git a/csrc/font.c b/csrc/font.c index 6e86ee8..1ab8909 100644 --- a/csrc/font.c +++ b/csrc/font.c @@ -190,6 +190,11 @@ void fcn_00456328(struct graph_st *a1, struct graph_st *a2, graph_overlay_2a(a1->width, a1->gdata, a2, a3, a4, a5, a6, a7, a8, 0); } +void speak_words(int n) +{ + /* TODO */ +} + void draw_some_text(struct graph_st *gg, const char *str, int a3, int a4, int a5) { DDSURFACEDESC desc; /* esp */ @@ -205,7 +210,7 @@ void draw_some_text(struct graph_st *gg, const char *str, int a3, int a4, int a5 if (str[0] == '#') { int t = (str[1] - '0') * 1000 + (str[2] - '0') * 100 + (str[3] - '0') * 10 + (str[4] - '0'); - fcn.0045441a(t); + speak_words(t); str += 5; } IDirectDrawSurface_GetDC(pddrawsf3, &hDC); -- cgit v1.2.3