Skip to content
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

error: ‘class TSC::cLevel_Player’ has no member named ‘m_points’ #638

Closed
jpenguin opened this issue Sep 16, 2018 · 2 comments
Closed

Comments

@jpenguin
Copy link

Building 'devel' branch on Fedora 28, my setup is documented here https://github.com/jpenguin/TSC/blob/devel/INSTALL.md

home/jpenguin/build/TSC/tsc/src/gui/menu_data.cpp: In member function ‘bool TSC::cMenu_Options::Joystick_Name_Click(const CEGUI::EventArgs&)’:
/home/jpenguin/build/TSC/tsc/src/gui/menu_data.cpp:2870:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
     if (selected_item >= pJoystick->m_num_joysticks) {
         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jpenguin/build/TSC/tsc/src/gui/menu_data.cpp: In member function ‘bool TSC::cMenu_Savegames::Button_Save_Clicked(const CEGUI::EventArgs&)’:
/home/jpenguin/build/TSC/tsc/src/gui/menu_data.cpp:3230:43: error: ‘class TSC::cLevel_Player’ has no member named ‘m_points’; did you mean ‘m_pos_x’?
         gp_hud->Set_Points(pLevel_Player->m_points - 3000);
                                           ^~~~~~~~
                                           m_pos_x
/home/jpenguin/build/TSC/tsc/src/gui/menu_data.cpp: In member function ‘std::__cxx11::string TSC::cMenu_Savegames::Set_Save_Description(unsigned int)’:
/home/jpenguin/build/TSC/tsc/src/gui/menu_data.cpp:3276:54: error: ‘class TSC::cLevel_Player’ has no member named ‘m_points’; did you mean ‘m_pos_x’?
     if (pActive_Level->Is_Loaded() && pLevel_Player->m_points < 3000) {
                                                      ^~~~~~~~
                                                      m_pos_x
make[2]: *** [CMakeFiles/tsc.dir/build.make:692: CMakeFiles/tsc.dir/src/gui/menu_data.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:212: CMakeFiles/tsc.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

@refi64
Copy link
Member

refi64 commented Sep 17, 2018

I have a fix for this in my local repo. Basically, as a temporary workaround, try building with -DCMAKE_BUILD_TYPE=Debug.

@refi64 refi64 closed this as completed in 132992c Sep 17, 2018
@Quintus
Copy link
Member

Quintus commented Sep 17, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants