MCPcopy Create free account
hub / github.com/JACoders/OpenJK / HasStringLanguageChanged

Function HasStringLanguageChanged

code/ui/ui_shared.cpp:6173–6188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6171}
6172
6173bool HasStringLanguageChanged ( const itemDef_t *item )
6174{
6175 if ( !item->text || item->text[0] == '\0' )
6176 {
6177 return false;
6178 }
6179
6180 int modificationCount;
6181#ifdef JK2_MODE
6182 modificationCount = sp_language->modificationCount;
6183#else
6184 modificationCount = se_language->modificationCount;
6185#endif
6186
6187 return item->asset != modificationCount;
6188}
6189
6190/*
6191=================

Callers 1

Item_SetTextExtentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected