MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Center

Method Center

engine/Poseidon/UI/Map/UIMapExt.cpp:1060–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058// simulation
1059
1060void CStaticMapArcadeViewer::Center()
1061{
1062 ArcadeUnitInfo* uInfo = _template->FindPlayer();
1063 Point3 pt = _defaultCenter;
1064 if (uInfo)
1065 {
1066 pt = uInfo->position;
1067 }
1068 CStaticMap::Center(pt);
1069}
1070
1071Vector3 GClipboardPos;
1072

Callers 1

DisplayArcadeMapMethod · 0.45

Calls 1

FindPlayerMethod · 0.80

Tested by

no test coverage detected