MCPcopy Create free account
hub / github.com/ZDoom/Raze / SetTranslation

Method SetTranslation

source/common/textures/texturemanager.cpp:1583–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1581//==========================================================================
1582
1583void FTextureManager::SetTranslation(FTextureID fromtexnum, FTextureID totexnum)
1584{
1585 if ((size_t)fromtexnum.texnum < Translation.Size())
1586 {
1587 if ((size_t)totexnum.texnum >= Textures.Size())
1588 {
1589 totexnum.texnum = fromtexnum.texnum;
1590 }
1591 Translation[fromtexnum.texnum] = totexnum.texnum;
1592 }
1593}
1594
1595
1596//-----------------------------------------------------------------------------

Callers 1

tileUpdateAnimationsFunction · 0.80

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected