MCPcopy Create free account
hub / github.com/crawl/crawl / store_msg

Method store_msg

crawl-ref/source/message.cc:811–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809 }
810
811 void store_msg(const message_line& msg)
812 {
813 prefix_type p = prefix_type::none;
814 msgs.push_back(msg);
815 if (_temporary)
816 temp++;
817 else
818 reset_temp();
819#ifdef USE_TILE_WEB
820 // ignore this message until it's actually displayed in case we run out
821 // of space and have to display --more-- instead
822 unwind_bool dontsend(send_ignore_one, true);
823#endif
824 if (crawl_state.io_inited && crawl_state.game_started)
825 msgwin.add_item(msg.full_text(), p, _temporary);
826 }
827
828 void roll_back()
829 {

Callers 1

load_messagesFunction · 0.80

Calls 3

full_textMethod · 0.80
push_backMethod · 0.45
add_itemMethod · 0.45

Tested by

no test coverage detected