Comments (7)
Can you add #include <algorithm>
to the top of the file src/editor/object_settings.cpp
and see if that fixes it?
from supertux.
Can you add
#include <algorithm>
to the top of the filesrc/editor/object_settings.cpp
and see if that fixes it?
Just tested this on my end, adding this include fixes the problem
from supertux.
Can you add
#include <algorithm>
to the top of the filesrc/editor/object_settings.cpp
and see if that fixes it?
Yep, this fixes it. Do you want me to make a pull request for this or would you be able to just commit it straight to master? This is a pretty trivial change.
from supertux.
Sure, just make a pull request. One less thing for me to think about.
from supertux.
I don't quite understand how I've never experienced this bug on my system before.
from supertux.
I don't quite understand how I've never experienced this bug on my system before.
I think this is because of the version of gcc being used. The latest version of gcc on my Arch Linux system is 14.1.1. I recently experienced a similar issue when compiling Minetest 5.8.0, and I worked around this issue by installing the gcc13
package and using g++-13
as the c++ compiler. I was able to replicate this error in SuperTux using gcc 14. This error does not appear when I use gcc 13.
from supertux.
I was able to replicate this error in SuperTux using gcc 14.
I'm also running an Arch system and sure enough, I've got GCC 14 installed. I wonder if something changed in how it handles transitive includes.
from supertux.
Related Issues (20)
- Weird inconsistency issues with lightmap tiles and lit objects HOT 1
- [Bug]: Growup turns around unintentionally when landing on a slope
- Memory leak in editor when pressing "Tiles" button HOT 4
- Setting Tux's position via scripting resets his velocity
- [Bug]: Walking candles reset their sprite tint + tint issues
- [Bug]: Moving platforms/coins don't appear in level editor HOT 1
- [Feature Request]: Size slider for on-screen controls
- Audio is permanently disabled...? HOT 6
- Sideways Crusher should not insta-kill players HOT 2
- SuperTux Path-related Level Editor Crash HOT 6
- Big number of compiler warnings HOT 4
- Make teleporting not reload everything
- [Feature Request]: Add touch controls for Windows and Linux based tablets HOT 2
- Music Still On HOT 1
- Scripted Thunderstorm crashes the game. HOT 5
- Dart Trap, Dart, Mole Rock die from spikes
- [Bug]: Swimming is a trap HOT 7
- "..\sprite.cpp:101 Action 'xyz' not found." when starting a level HOT 1
- [Feature Request]: A command to turn off Tux's idle animations
- [Feature Request]: flashcards to advance in the game and learning mode HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supertux.