1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00
openrw/rwgame
Christoph Heiss 6cab5ee31a Fix some warnings
openrw/rwengine/src/engine/GameData.cpp:358:26: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
    textureslots[slot] = std::move(loadTextureArchive(name));
                         ^
openrw/rwengine/src/engine/GameData.cpp:358:26: note: remove std::move call here
    textureslots[slot] = std::move(loadTextureArchive(name));
                         ^~~~~~~~~~                        ~

openrw/rwengine/src/objects/CharacterObject.cpp:16:18: warning: unused variable 'enter_offset' [-Wunused-variable]
static glm::vec3 enter_offset(0.81756252f, 0.34800607f, -0.486281008f);
                 ^

In file included from openrw/rwgame/RWGame.cpp:5:
openrw/rwgame/states/BenchmarkState.hpp:33:23: warning: 'BenchmarkState::getCamera' hides overloaded virtual function
      [-Woverloaded-virtual]
    const ViewCamera& getCamera();
                      ^
openrw/rwgame/State.hpp:51:31: note: hidden overloaded virtual function 'State::getCamera' declared here: different number of
      parameters (1 vs 0)
    virtual const ViewCamera& getCamera(float alpha);
                              ^
In file included from openrw/rwgame/RWGame.cpp:6:
openrw/rwgame/states/IngameState.hpp:53:18: warning: 'draw' overrides a member function but is not marked 'override'
      [-Winconsistent-missing-override]
    virtual void draw(GameRenderer* r);
                 ^
openrw/rwgame/State.hpp:28:18: note: overridden virtual function is here
    virtual void draw(GameRenderer* r) {
                 ^
In file included from openrw/rwgame/RWGame.cpp:6:
openrw/rwgame/states/IngameState.hpp:60:23: warning: 'getCamera' overrides a member function but is not marked 'override'
      [-Winconsistent-missing-override]
    const ViewCamera& getCamera(float alpha);
                      ^
openrw/rwgame/State.hpp:51:31: note: overridden virtual function is here
    virtual const ViewCamera& getCamera(float alpha);
                              ^
openrw/rwgame/RWGame.cpp:242:22: warning: unused variable 'vehicleModel' [-Wunused-variable]
            uint16_t vehicleModel = 110;  // @todo Which cars are spawned?!
                     ^

In file included from openrw/rwengine/src/script/modules/GTA3Module.cpp:1:
In file included from openrw/rwengine/src/engine/GameState.hpp:7:
openrw/rwengine/src/engine/ScreenText.hpp:140:63: warning: suggest braces around initialization of subobject [-Wmissing-braces]
        const std::array<GameString, sizeof...(args)> vals = {args...};
                                                              ^~~~
                                                              {   }
openrw/rwengine/src/script/modules/GTA3ModuleImpl.inl:5669:16: note: in instantiation of function template specialization
      'ScreenText::format<std::__1::basic_string<unsigned short, std::__1::char_traits<unsigned short>, std::__1::allocator<unsigned short> > >'
      requested here
                        ScreenText::format(
                                    ^
In file included from openrw/rwengine/src/script/modules/GTA3Module.cpp:1:
In file included from openrw/rwengine/src/engine/GameState.hpp:7:
openrw/rwengine/src/engine/ScreenText.hpp:140:63: warning: suggest braces around initialization of subobject [-Wmissing-braces]
        const std::array<GameString, sizeof...(args)> vals = {args...};
                                                              ^~~~
                                                              {   }
openrw/rwengine/src/script/modules/GTA3ModuleImpl.inl:10214:18: note: in instantiation of function template specialization
      'ScreenText::format<std::__1::basic_string<unsigned short, std::__1::char_traits<unsigned short>, std::__1::allocator<unsigned short> >,
      std::__1::basic_string<unsigned short, std::__1::char_traits<unsigned short>, std::__1::allocator<unsigned short> > >' requested here
            ScreenText::format(script::gxt(args, gxtEntry),
                        ^

openrw/rwgame/State.cpp:40:42: warning: unused parameter 'alpha' [-Wunused-parameter]
const ViewCamera& State::getCamera(float alpha) {
                                         ^

openrw/rwengine/src/render/ObjectRenderer.cpp:20:17: warning: unused variable 'kWorldDrawDistanceFactor'
      [-Wunused-const-variable]
constexpr float kWorldDrawDistanceFactor = kDrawDistanceFactor;
                ^
2017-10-13 19:54:10 +01:00
..
states Fix some warnings 2017-10-13 19:54:10 +01:00
CMakeLists.txt Remove last mman reference 2017-09-16 19:50:51 +01:00
DrawUI.cpp improve the ammo count display logic 2017-03-13 19:15:15 +00:00
DrawUI.hpp clang-format files in rwgame 2016-09-09 21:13:20 +01:00
game.hpp Move some non-game code into GameBase class 2016-10-19 22:34:51 +01:00
GameBase.cpp rwlib: Add option to abort/break on failed checks or at request 2017-09-16 22:19:39 +01:00
GameBase.hpp Move some non-game code into GameBase class 2016-10-19 22:34:51 +01:00
GameConfig.cpp config: Add the unknown keys to the what() message 2017-08-15 15:58:01 +01:00
GameConfig.hpp config: unknown data will be kept in memory and saved onto disk 2017-08-15 15:58:01 +01:00
GameInput.cpp Extract game input state handling from IngameState 2016-11-19 23:50:34 +00:00
GameInput.hpp Extract game input state handling from IngameState 2016-11-19 23:50:34 +00:00
GameWindow.cpp clang-format files in rwgame 2016-09-09 21:13:20 +01:00
GameWindow.hpp clang-format files in rwgame 2016-09-09 21:13:20 +01:00
GitSHA1.cpp.in Add Git SHA1 hash to RWGame for versioning 2016-08-01 19:34:53 +01:00
GitSHA1.h Add Git SHA1 hash to RWGame for versioning 2016-08-01 19:34:53 +01:00
main.cpp spelling: recieve -> receive 2017-02-20 01:01:30 +00:00
MenuSystem.cpp Improve Menu system implementation 2016-10-24 21:29:41 +01:00
MenuSystem.hpp Make MenuEntry height a property of the Menu 2016-10-24 21:29:41 +01:00
README.md Update readme informations 2015-05-10 23:57:13 +01:00
RWGame.cpp Pause chase when the game paused 2017-10-13 19:12:30 +01:00
RWGame.hpp Rewrite of camera and character look code 2016-12-04 01:06:27 +00:00
State.cpp Fix some warnings 2017-10-13 19:54:10 +01:00
State.hpp Rewrite of camera and character look code 2016-12-04 01:06:27 +00:00
StateManager.cpp Overhaul State and StateManager to remove pointers 2016-10-24 21:29:40 +01:00
StateManager.hpp Improve state access to always get the current scene 2017-09-17 00:45:58 +01:00

RWGame

The game executable, handles the frontend UI drawing and menus.