17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-08 23:07:38 +01:00
Commit Graph

15 Commits

Author SHA1 Message Date
maj00r
a6778c9fe2 refactor: the Sonar remarks on the small fixes taken care of
- the log stops through a flag kept in a function, not a global one
- the messages are put together with std::format
- a vehicle dropped on a trainset in the launcher goes in once the
  trainset is drawn, so the vehicles are gone through with a plain loop
  again; the drop split into a new vehicle and a moved one
- the scenario that can't be opened is caught as the runtime error it
  is, a file name outside of the code page as the system error it is
- a track of an unknown type is left out through the pointer owning it
- the keyword of a track type written out by a function of its own
- the picked node forgotten with ranges::replace_if, the empty
  Forget_Node of the base renderer told why it is empty
- FileCased takes the path it works on
2026-11-06 19:54:54 +01:00
maj00r
0d69059448 fix(launcher): the scans of the sceneries and the vehicles go past folders they can't read, a vehicle dropped without its skin set isn't added
A folder without the permission to read it or a name that can't be converted ended the scan with an exception. Ctrl+Delete with no trainset selected, a dropped skin whose vehicle is gone, and a description with a % in it no longer crash the launcher.
2026-11-03 21:45:58 +01:00
maj00r
978b99b7e5 feat(scenery): models laid along curves (sweep nodes), bent to follow the paths or repeated along them, loaded and saved with the scenery; trainsets put on a path while the simulation runs; trainset turned around by reversed after its header: the first vehicle stays at the offset and leads towards point 1, the rest stands behind it; launcher keeps reversed trainsets and can turn one around; memory cells saved with the new name of the path they name; events tell their targets and the events of a multiple event; renderer tells whether the cursor is over a surface; vehicle placed in the editor entered when the driving goes on 2026-10-06 22:19:32 +02:00
jerrrrycho
d85096f64d reformat: remove redundant parentheses 2026-06-30 21:19:46 +02:00
docentYT
bd21b8f49c Replace string_starts_with and string_ends_with with string::starts_with and string::ends_with 2026-05-01 13:33:32 +02:00
copilot-swe-agent[bot]
7e49aa8740 Rewrite #includes to use explicit subdirectory paths
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
2026-03-14 19:16:48 +00:00
jakubg1
c83c123596 Add scenery category detection, launcher category list parity with Starter 2025-09-04 18:01:48 +02:00
milek7
078cbdb71b show file in scenery scanner errors 2020-03-29 21:56:36 +02:00
milek7
f7ac7cc581 launcher link start fix, assume scn files in win1250 2019-09-01 17:41:23 +02:00
milek7
aa9bee57da further WIP on launcher 2019-08-24 01:28:55 +02:00
milek7
2bcdb36df1 further work on launcher 2019-08-21 17:18:39 +02:00
milek7
bd850655a9 scenery parser work 2019-08-10 22:52:23 +02:00
milek7
4489aa31ee more work at parsing trainsets in launcher 2019-08-10 15:16:38 +02:00
milek7
da6343166a scn parsing with directive and trainset matching 2019-08-10 12:00:37 +02:00
milek7
1626864bfe cleanup 2019-08-09 00:45:38 +02:00