-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix teleports #16
base: main
Are you sure you want to change the base?
Fix teleports #16
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,7 +190,7 @@ const static TMVector3 g_vecItemBillPos[28] = | |
{0.76899999f, 0.509f, -1.143f}, | ||
}; | ||
|
||
const static stTeleportPos g_TeleportTable[37] = | ||
const static stTeleportPos g_TeleportTable[42] = | ||
{ | ||
{ 2116, 2100, 700, g_pMessageStringTable[209] }, | ||
{ 2480, 1716, 700, g_pMessageStringTable[209] }, | ||
|
@@ -228,7 +228,12 @@ const static stTeleportPos g_TeleportTable[37] = | |
{ 3648, 3140, 700, g_pMessageStringTable[211] }, | ||
{ 2480, 1648, 700, g_pMessageStringTable[301] }, | ||
{ 1052, 1708, 0, g_pMessageStringTable[321] }, | ||
{ 1056, 1724, 0, g_pMessageStringTable[485] } | ||
{ 1056, 1724, 0, g_pMessageStringTable[485] }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fiquei na dúvida quanto as posições. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. eu fiz como solicitado , o teleporte de Noatun -> Khepra foi corrigido . Mas o teleporte de Khepra -> Noatun ainda continua bugado mesmo eu colocando a coordenada da forma que vc pôs na imagem 2364, 4072 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bom, eu vou dar uma olhada nas coordenadas e analisar o problema melhor antes de mergear. De qualquer forma, eu solicite mudanças quanto a array. Quando tiver um tempo para isso :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. opa meu querido acabei de notar que tem que alterar aqui tb |
||
{ 1312, 1900, 0, g_pMessageStringTable[322] }, // Noatun -> Kefra | ||
{ 2364, 4072, 0, g_pMessageStringTable[209] }, // Kefra -> Noatun | ||
{ 2360, 3892, 0, g_pMessageStringTable[322] }, // Kefra -> KefraBoss | ||
{ 2364, 3892, 0, g_pMessageStringTable[322] }, // Kefra -> KefraBoss | ||
{ 2368, 3892, 0, g_pMessageStringTable[322] } // Kefra -> KefraBoss | ||
}; | ||
|
||
static unsigned int g_dwFoodColor[7] = | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vamos aproveitar e mudar para
constexpr std::array g_TeleportTable
A inicialização fica assim (sem contar com a parte que você adicionou):
Sendo assim, trocaremos os acessos para um range-based for loop ou pelo menos usar o
size()
para iterar usando o índice. Solicito isto porque chequei o código, e você alterou apenas um dos acessos a arrayg_TeleportTable
, e alterando já para .len() ou range-based for torna mais difícil de errar no futuro.