17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 12:17:29 +01:00
Commit Graph

31 Commits

Author SHA1 Message Date
maj00r
b8f040e6fd propagate template headers transitively, import Console where used
AnimModel.cpp reaches cParser through the simulation core, not a direct
import, so the previous pass missed it; the propagation now follows the
whole import closure. Train.cpp, drivermode.cpp and Globals.cpp call
Console:: inside _WIN32 guards without importing eu07.console - invisible
on Linux, where those blocks are skipped.
2026-09-10 01:41:24 +02:00
maj00r
6550c88536 give importers the headers module templates need
A template defined in a module interface is instantiated in the importing
unit, where its body's types must be complete. A declaration reaching the
importer only through the interface's global module fragment is not
enough for MSVC: cParser::operator>> uses std::stringstream, and every
unit that parsed a float got an incomplete type.

526 headers across 161 units, derived from what each interface's template
bodies actually name.
2026-09-10 01:20:33 +02:00
maj00r
ce5ee288ff fix the clang CI build
Every module unit now includes the standard headers it uses. Declarations
reaching a unit only through an imported module's global module fragment
are reachable but not visible, so ADL misses the free operators older
libstdc++ declares beside a type - reproduced on ubuntu 24.04 (libstdc++
13), where gl/vao.cpp could not compare vector iterators.

Also drops a stale editor/editorSettings.hpp from the MSVC source list,
which broke the Windows configure step, silences the deliberate
include-in-purview warning in the glm wrapper, and removes GCC support:
clang or MSVC only.
2026-09-09 22:52:28 +02:00
maj00r
f16b5deefb build with clang
Linux CI switches to clang 22; fixes what that exposed - export on
out-of-line member definitions, missing std includes, missing glm
imports. GCC 16 still builds.
2026-09-09 22:34:32 +02:00
maj00r
3f7960aad5 pch migration to modules [wip] 2026-09-09 20:35:26 +02:00
combolek
12c583f418 Fix some SonarQube warnings 2026-07-28 08:54:33 -07:00
combolek
00bb44a789 state_manager: Optimize computation of pressure flow for Oerlikon ESt valves
TNESt3::GetPF() is a *major* hotspot in simulation state update. The leading cause is the use of typeid (RTTI) which is implemented in the C++ runtime essentially as a string compare. This change eliminates the use of typeid and instead caches statically typed pointers for the few TPrzekladnik subclass objects that need their parameters adjusted in TNESt3::GetPF(). As a bonus some virtual methods on TPrzekladnik can now be removed. Overall this change reduces the TNESt3::GetPF() contribution from about 25% to 16%.
2026-07-26 21:19:38 -07:00
jerrrrycho
d85096f64d reformat: remove redundant parentheses 2026-06-30 21:19:46 +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
milek7
5bafa31f9d Merge commit 'd8170c932b448ba6888e702746b5ae22632062d8' into sim 2022-01-05 22:21:05 +01:00
tmj-fstate
7b816594ba maintenance: string search methods 2021-05-27 14:23:00 +02:00
tmj-fstate
e3915e3c52 fix for emptying brake reservoirs 2017-10-25 15:44:41 +02:00
tmj-fstate
441b39ce5f partial render code revert, oerlikon brakes fix, sound fixes 2017-03-16 22:18:14 +01:00
tmj-fstate
1b6339e482 miscellaneous bug fixes. 2017-02-10 22:17:12 +01:00
tmj-fstate
3b2bba69d6 merged upstream changes 2017-01-23 12:40:14 +01:00
firleju
81aad5d1ae Konwersja na UTF-8
Konwersja na UTF-8


Konwersja na UTF-8


Konwersja na UTF-8


Konwersja na UTF-8


Konwersja do UTF-8


Konwersja na UTF-8


Konwersja na UTF-8


Konwersja na UTF-8
2017-01-23 06:58:53 +01:00
tmj-fstate
8fe465afef re-enabled door controls (hard-coded and limited to EZT for the time being); added more convenient version of getkyval(); fixed disappearing vehicle wheels. 2017-01-19 17:49:49 +01:00
tmj-fstate
6ab550831d basic patches for most of discovered memory leaks, fixes for brake system components 2017-01-18 07:56:51 +01:00
tmj-fstate
15cf3d73a8 removed dependencies on the old parser. The code can now be compiled outside of Borland C++ 2017-01-15 15:27:53 +01:00
firleju
95f8bd3c27 Poprawione sprawdzanie flag w całych hamulcach
Poprawione sprawdzanie flag w całych hamulcach
2017-01-06 23:43:53 +01:00
firleju
67815379dd Błąd w TPrzekładnik załatany 2017-01-06 21:05:33 +01:00
firleju
819de3cb6a Poprawione ładowanie hamulców 2017-01-05 22:56:12 +01:00
firleju
3926133db7 Poprawione wybieranie klasy polimorficznej dla typeid 2017-01-04 22:42:30 +01:00
firleju
bcb1e4cb95 Poprawki inicjalizacji hamulców 2016-12-21 06:16:06 +01:00
firleju
df2365f353 Inicjacja wszystkich zapomnianych zmiennych w hamulcach 2016-12-10 21:59:52 +01:00
firleju
e90b7cfb25 Przesunięcie Init dla TNest3. Zmiany w CheckLocParams 2016-11-07 17:15:41 +01:00
firleju
cd08fe0b5d Projekt się buduje, ale ma 3k warningów. 2016-10-31 07:38:45 +01:00
firleju
5ecf7915d2 Poprawione pliki. Kompiluje się, ale nie buduje. Problem z linkerem. 2016-10-02 14:14:38 +02:00
firleju
b6893be074 Poprawione odwołania do wskaźników. Dodane brakujące wywołania funkcji w miejscach niejawnych. 2016-09-26 16:09:29 +02:00
firleju
48c4ecd1a2 Zmiana obiektów na wskaźniki zgodnie z konwerterem Borlanda. 2016-09-26 06:36:28 +02:00
firleju
fcd06c35c5 Translacja Oerlikon_Est. Pliki wynikowe z tłumacza. 2016-09-14 22:19:47 +02:00