Mercurial > hg > openttd
changeset 20426:dd55e8fb976c draft
(svn r25384) -Fix (25344): Correctly invalidate the story window when data changes
author | zuu <zuu@openttd.org> |
---|---|
date | Sun, 09 Jun 2013 16:18:58 +0000 |
parents | 211effd61338 |
children | dba010c0cc66 |
files | src/story.cpp |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/story.cpp +++ b/src/story.cpp @@ -125,7 +125,7 @@ s->title = strdup(text); } - InvalidateWindowData(WC_STORY_BOOK, -1); + InvalidateWindowClassesData(WC_STORY_BOOK, -1); _new_story_page_id = s->index; _story_page_next_sort_value++; @@ -176,7 +176,7 @@ pe->page = page_id; UpdateElement(*pe, tile, p2, text); - InvalidateWindowData(WC_STORY_BOOK, page_id); + InvalidateWindowClassesData(WC_STORY_BOOK, page_id); _new_story_page_element_id = pe->index; _story_page_element_next_sort_value++; @@ -211,7 +211,7 @@ if (flags & DC_EXEC) { UpdateElement(*pe, tile, p2, text); - InvalidateWindowData(WC_STORY_BOOK, pe->page); + InvalidateWindowClassesData(WC_STORY_BOOK, pe->page); } return CommandCost(); @@ -241,7 +241,7 @@ p->title = strdup(text); } - InvalidateWindowData(WC_STORY_BOOK, page_id); + InvalidateWindowClassesData(WC_STORY_BOOK, page_id); } return CommandCost(); @@ -296,7 +296,7 @@ delete p; - InvalidateWindowData(WC_STORY_BOOK, -1); + InvalidateWindowClassesData(WC_STORY_BOOK, -1); } return CommandCost();