Skip to content
#

sdl2

Here are 2,000 public repositories matching this topic...

duncanspumpkin
duncanspumpkin commented Feb 7, 2021

In our sister project I introduced the _mph literal for speeds OpenLoco/OpenLoco#736
I'm almost definitely the underlying units are the same in OpenRCT2. Therefore we should bring in the same changes. First add the string literal code. Then find all of the velocity literals in the vehicle code.

Its quite easy to do just convert the literal to hex so 393216 = `0x6000

zx64
zx64 commented Dec 1, 2018

From the comment in SDL_filesystem.h:
Please call SDL_free() on the pointer when you are done with it

When building the project with MSVC, I ran into some debug heap asserts early into the program startup.
The culprit appears to be the code in m_config.c that does free(prefdir) as changing these to SDL_free(prefdir) resolved the issue.

I'm not sure what to do about `GetDefaultConfi

duncanspumpkin
duncanspumpkin commented Feb 6, 2021

OpenLoco/OpenLoco#736 added the _mph literal to Types.hpp. This should be used throughout the codebase where appropriate. A quick search shows that there are a lot vehicle_2::var_56 comparisons that are ripe for making this change.

Its quite easy to do just convert the literal to hex so 393216 = 0x60000 in hex then you drop the 4 0's to get 0x6 which is the spe

cxong
cxong commented Jun 14, 2016

Via playtesting, the compass arrows (#29) were ignored, likely because they are right at the edge and outside the player's attention. If they are moved slightly inwards, they may become more noticeable.

Games that have these arrows also tend to draw them closer to the player rather than near the edge; e.g.

  • GTA 1 & 2
  • Fire Fight
  • Crazy Taxi
dosbox-staging
dreamer
dreamer commented Nov 22, 2020

Help messages for various built-in commands are annoying mish-mash of styles and formatting. Plenty of documentation is simply missing (and users usually don't know where to find our manual file).

In #608 and #577 we improved the help messages for mount and imgmount. In the process, we established a nice, readable style for our help commands - now it's time to expand help for all remaining

Improve this page

Add a description, image, and links to the sdl2 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the sdl2 topic, visit your repo's landing page and select "manage topics."

Learn more