summaryrefslogtreecommitdiff
path: root/src/news_type.h
AgeCommit message (Collapse)Author
2021-07-01Codechange: use a contructor for NewsItem to set the valuesRubidium
And use std::unique_ptr to manage the memory of the allocated data
2021-07-01Codechange: use the constructor for CompanyNewsItem to fill the data instead ↵rubidium42
of a separate function
2021-07-01Codechange: create a type for the "free_data" of NewsItems and (de)allocate ↵rubidium42
it with new and delete
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2018-10-31Remove: A few bits of dead codeCharles Pigott
2012-12-23(svn r24843) -Codechange: Move news display options into the general ↵frosch
settings framework. (based on patch by eagle_rainbow)
2012-05-26(svn r24285) -Codechange: Add a more explcit NewsFlag to indicate that the ↵frosch
first string parameter is a vehicle ID.
2012-05-26(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and ↵frosch
NewsFlag instead.
2012-05-26(svn r24281) -Cleanup: Merge all company news subtypes into a single one; ↵frosch
they all behave the same.
2011-12-19(svn r23600) -Codechange: link WC+number to a Widget, and the Widget to a ↵truebrain
Window class
2011-12-19(svn r23595) -Codechange: add comma after last enum to get a more uniform ↵rubidium
coding style
2011-09-05(svn r22897) -Change: More suitable default news settings instead of ↵frosch
everything on 'full'.
2011-05-02(svn r22410) -Document: some more bits ;)rubidium
2010-03-23(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT ↵smatz
and DECLARE_ENUM_AS_BIT_SET
2010-02-12(svn r19105) -Fix [FS#3614]: not all news data was properly freed when ↵yexo
starting a new game
2009-09-02(svn r17398) -Codechange: Fill normal news item window with widgets.alberth
2009-09-02(svn r17397) -Codechange: Add new vehicle news window.alberth
2009-09-02(svn r17396) -Codechange: Add company news window.alberth
2009-09-02(svn r17394) -Codechange: Add news flags for viewport settings.alberth
2009-09-01(svn r17343) -Codechange: it's bankruptcy, not bankrupcy, according to my ↵rubidium
Oxford Dictionary of English and Merriam-Webster.
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-16(svn r17199) -Codechange: Remove NF_VIEWPORT since it is implied by the news ↵alberth
mode.
2009-08-10(svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following ↵frosch
vehicles, when autoreplacing/renewing them.
2009-05-24(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced ↵frosch
vehicles/stations/industries are deleted.
2009-05-17(svn r16340) -Codechange: introduce SoundID (uint16) and use that instead of ↵rubidium
SoundFX, which was used as a byte and uint16 at different places, when the uint16 sound ID is meant.
2009-05-13(svn r16297) -Codechange: silence more ICC warningsrubidium
2009-05-02(svn r16200) -Codechange: Moving news-type description to NewsTypeData array.alberth
2009-03-23(svn r15830) -Codechange: don't use fixed size of array in news_gui.cpp and ↵smatz
news_func.h
2009-03-15(svn r15726) -Codechange: unify coding style for const pointerssmatz
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-08-13(svn r14059) -Fix(r13872): Wrong comments in enum. Dear old copy/paste...belugas
2008-07-30(svn r13872) -Feature: Split the news message announcing opening and closure ↵belugas
of industries into two news of their own
2008-07-18(svn r13730) -Fix: make a copy of the names for news messages about the ↵rubidium
deletion of companies as the removal of a company could lead to wrong names in the news messages.
2008-06-05(svn r13389) -Codechange: remove NM_CALLBACK because that information could ↵rubidium
be gathered from the fact that a callback has been specified. Patch by Cirdan.
2008-06-01(svn r13349) -Codechange: remove a pointless flag; the flag is set before ↵rubidium
calling a function and is then reset in the function without ever reading it. Patch by Cirdan.
2008-05-30(svn r13345) -Codechange: only one of all the NewsItem's instance duration ↵rubidium
variable, so move it so there is only once instance of that variable. Patch by Cirdan.
2008-05-28(svn r13317) -Codechange: make news messages use a linked list instead of a ↵rubidium
moving circular buffer. This makes it possible to store more news messages in the history. Based on a patch by Cirdan. -Codechange: the number of news messages is reduced by removing every news message that is a configurable amount older than when it would not be shown in the newspaper popup/ticker, which is e.g. a month for industry production changes and half a year for subsidy offers. As a result the more important messages will stay longer in the message history (if longer than 30 messages).
2008-05-19(svn r13181) -Codechange: make news callback handling a little simpler. ↵rubidium
Patch by Cirdan.
2008-05-16(svn r13123) -Codechange: passing the bankrupt type via data_b is not needed ↵rubidium
anymore. Patch by Cirdan.
2008-05-15(svn r13102) -Codechange: make a class of the NewsWindow.rubidium
2008-05-15(svn r13100) -Codechange: reduce the amount of parameters passed via ↵rubidium
AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
2008-05-13(svn r13065) -Codechange: remove the need for the news string callbacks. ↵rubidium
Patch by Cirdan.
2008-05-08(svn r13021) -Codechange: free data_b for other uses when it is not used to ↵rubidium
store a second tile to skip to (in news messages). Patch by cirdan.
2008-04-20(svn r12805) -Codechange: remove some bit magic related to the news display ↵rubidium
states. Patch by cirdan.
2008-04-19(svn r12785) -Codechange: put all news-type related constants in the same ↵rubidium
array. Patch by cirdan.
2008-04-13(svn r12691) -Fix (r12459): all company related news displayed the 'company ↵glx
is in trouble' message
2008-03-28(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.rubidium