Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

The Forgotten Server 0.4, Versão: 8.6, Ubuntu 16.04

 

Nao estou conseguindo compilar as sources REV 3996 postado pelo Yan Liima:

 

Surgem os seguintes erros:

Citar

protocolgame.cpp:2272:10: warning: comparison is always false due to limited range of d
ata type [-Wtype-limits]
  if(type > MAGIC_EFFECT_LAST || !canSee(pos))

Citar

game.cpp: In constructor ‘Game::Game()’:
game.cpp:81:31: warning: iteration 2u invokes undefined behavior [-Waggressive-loop-opt
imizations]
   globalSaveMessage = false;
                               ^
game.cpp:80:23: note: containing loop
  for(int32_t i = 0; i < 3; i++)
                       ^
In file included from game.cpp:18:0:
game.h: In member function ‘void Game::globalSave()’:
game.h:624:85: warning: iteration 2u invokes undefined behavior [-Waggressive-loop-opti
mizations]
   void setGlobalSaveMessage(int16_t key, bool value) {globalSaveMessage[key] = value;}
                                                                                     ^
game.cpp:6461:23: note: containing loop
  for(int16_t i = 0; i < 3; i++)

Segue imagem:

 

VuoLU1V.png

 

Alguem pode me ajudar ?

 

Agradeço desde ja.

Editado por Vitoxy (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo