Comments (3)
AFAIR this also used to be an issue with the powerup icons when you got a gift box, but I think that was fixed at some point. Likely the same fix needs to be applied here.
For reference, here's the code that draws the currently held powerup icons, which does work: https://github.com/supertuxkart/stk-code/blob/master/src/states_screens/race_gui_base.cpp#L1203
video::ITexture *iconItem = powerup->getIcon()->getTexture()
seems to be working as expected.
The plunger-in-face code also works as expected: https://github.com/supertuxkart/stk-code/blob/master/src/states_screens/race_gui_base.cpp#L1226
powerup_manager->getIcon(PowerupManager::POWERUP_PLUNGER)->getTexture();
Meanwhile, the attachment code is what is not working: https://github.com/supertuxkart/stk-code/blob/master/src/states_screens/race_gui_base.cpp#L1241
attachment_manager->getIcon(kart->getAttachment()->getType())->getTexture();
Seems like powerup_manager->getIcon()
works properly, but attachment_manager->getIcon()
does not.
from stk-code.
Side note: PowerupManager::unloadPowerups()
is a completely unused function, should probably be removed.
from stk-code.
It seems that the powerup manager has an explicitly defined constructor that resetsm_all_icons
: https://github.com/supertuxkart/stk-code/blob/master/src/items/powerup_manager.cpp#L48
Meanwhile the attachment manager doesn't have any explicitly defined constructor.
Perhaps this is the difference?
from stk-code.
Related Issues (20)
- Map addon karts to standard karts for online multiplayer
- The gum shield doesn't protect from basket-ball squashing
- Leverage ControllerImage to show proper button glyphs for various controllers
- Allow users to display online a title based on achievements
- WIP and other non-addon tracks are incorrectly counted for all-tracks achievements
- Crash when the game tries to remove a server bookmark
- Icon resizing loses a lot of quality HOT 2
- Thunderbird rescue may be accidentally triggered on Android when holding the steering wheel HOT 3
- Incorrect time difference against a ghost replay HOT 2
- The finish time of ghost karts is computed twice every single frame
- Spare tire karts don't spawn in 3-strikes battle HOT 9
- Front faraway objects are black on GLES devices HOT 1
- Feature request: allow modifying borderlines to fonts in skin HOT 1
- Full resolution is not supported when a scale is set on Windows HOT 1
- In battle mode, immunity doesn't protect from losing points/lives to bananas HOT 2
- Cannot login with debian 12 server HOT 15
- Don't give basket balls when some players have already finished the race
- Thunderbird removes bad items like Bomb or Handicap HOT 1
- Character animations in sprites could be more beautiful HOT 4
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 stk-code.