Skip to content

Commit 0daa69d

Browse files
committed
Quick Fixes
1 parent a6ec68b commit 0daa69d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+373
-1128
lines changed

Audio/Audio.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ namespace ms
198198
if (path == bgmpath)
199199
return;
200200

201-
nl::audio ad = nl::nx::Sound.resolve(path);
201+
nl::audio ad = nl::nx::Sound002.resolve(path);
202202
auto data = reinterpret_cast<const void*>(ad.data());
203203

204204
if (data)
@@ -224,7 +224,7 @@ namespace ms
224224
if (path == bgmpath)
225225
return;
226226

227-
nl::audio ad = nl::nx::Sound.resolve(path);
227+
nl::audio ad = nl::nx::Sound002.resolve(path);
228228
auto data = reinterpret_cast<const void*>(ad.data());
229229

230230
if (data)

Gameplay/MapleMap/MapBackgrounds.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace ms
3232
WOFFSET = VWIDTH / 2;
3333
HOFFSET = VHEIGHT / 2;
3434

35-
nl::node backsrc = nl::nx::Map["Back"];
35+
nl::node backsrc = nl::nx::Map001["Back"];
3636

3737
animated = src["ani"].get_bool();
3838
animation = backsrc[src["bS"] + ".img"][animated ? "ani" : "back"][src["no"]];

Gameplay/MapleMap/MapEffect.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace ms
2727
{
2828
MapEffect::MapEffect(std::string path) : active(false)
2929
{
30-
nl::node Effect = nl::nx::Map["Effect.img"];
30+
nl::node Effect = nl::nx::Map002["Effect.img"];
3131

3232
effect = Effect.resolve(path);
3333

Gameplay/MapleMap/Npc.cpp

+17
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
//////////////////////////////////////////////////////////////////////////////////
1818
#include "Npc.h"
1919

20+
#include <codecvt>
21+
2022
#ifdef USE_NX
2123
#include <nlnx/nx.hpp>
2224
#endif
@@ -63,6 +65,21 @@ namespace ms
6365
name = strsrc["name"];
6466
func = strsrc["func"];
6567

68+
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
69+
std::wstring wide = converter.from_bytes(func);
70+
71+
for (size_t i = 0; i < wide.size(); i++)
72+
{
73+
wchar_t c = wide[i];
74+
75+
// Korean
76+
if (c >= 0x1100 && c <= 0x11FF)
77+
{
78+
func = "";
79+
break;
80+
}
81+
}
82+
6683
namelabel = Text(Text::Font::A13B, Text::Alignment::CENTER, Color::Name::YELLOW, Text::Background::NAMETAG, name);
6784
funclabel = Text(Text::Font::A13B, Text::Alignment::CENTER, Color::Name::YELLOW, Text::Background::NAMETAG, func);
6885

Gameplay/Physics/Physics.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace ms
2121
{
2222
const double GRAVFORCE = 0.14;
2323
const double SWIMGRAVFORCE = 0.03;
24-
const double FRICTION = 0.3;
24+
const double FRICTION = 0.5;
2525
const double SLOPEFACTOR = 0.1;
2626
const double GROUNDSLIP = 3.0;
2727
const double FLYFRICTION = 0.05;

Gameplay/Stage.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ namespace ms
8787
std::string strid = string_format::extend_id(mapid, 9);
8888
std::string prefix = std::to_string(mapid / 100000000);
8989

90-
nl::node src = mapid == -1 ? nl::nx::UI["CashShopPreview.img"] : nl::nx::Map["Map"]["Map" + prefix][strid + ".img"];
90+
nl::node src = mapid == -1 ? nl::nx::UI["CashShopPreview.img"] : nl::nx::Map002["Map"]["Map" + prefix][strid + ".img"];
9191

9292
tilesobjs = MapTilesObjs(src);
9393
backgrounds = MapBackgrounds(src["back"]);

0 commit comments

Comments
 (0)