Decompile fn_21261 (CGameMode::DrawMiniMapNumber)
Batch #11137 by dori: 0 byte-identical, 1 confirmed by peer review. - fn_21261 CGameMode::DrawMiniMapNumber: logic confirmed by peer review Peer-reviewed-by: kyoshi, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
6d34f1ba36
commit
5df105aa95
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "Client/Mode/CGameMode.h"
|
||||
#include "Client/Input/Mouse.h"
|
||||
#include "Client/Session.h"
|
||||
#include "Contents/TownInfoMgr.h"
|
||||
#include "File/File.h"
|
||||
|
|
@ -570,10 +571,10 @@ void CGameMode::DrawMiniMapNumber() {
|
|||
CSprRes* sprite = static_cast<CSprRes*>(ResourceMgr::Instance().Load("이팩트\\숫자.spr"));
|
||||
for (int index = 0; index < g_minimapCoordinateDigits; ++index) {
|
||||
const int x = static_cast<int>(
|
||||
static_cast<float>(g_screenWidth) + this->cursorOffsetX + 24.0f - static_cast<float>(index * 16) +
|
||||
static_cast<float>(g_mouse.x) + this->cursorOffsetX + 24.0f - static_cast<float>(index * 16) +
|
||||
static_cast<float>(g_minimapCoordinateDigits * 16 - 16)
|
||||
);
|
||||
const int y = static_cast<int>(static_cast<float>(g_screenHeight) + this->cursorOffsetY);
|
||||
const int y = static_cast<int>(static_cast<float>(g_mouse.y) + this->cursorOffsetY);
|
||||
DrawActionSprite(
|
||||
reinterpret_cast<CRenderSystemBase&>(*this), x, y, action, sprite, 0, g_minimapCoordinateDigitValues[index], 2.0f, 0.0f, 0xFAFFFFFF, 0x201
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue