Classic Tomb Raider open-source engine
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Korean Language support (#513) * Korean Language support * Fix a Heap Buffer Overflow in Enemy Pathing (#517) This commit prevents an out of bounds array access in enemy.h. This access was occuring when the path->index was 0. The path->index is 0 when there is only one box in the path->box array. This occurrs when the enemy's target box is the box that it is already in. This is a valid case when an enemy is attacking a nearby creature. The out of bounds access was occuring in an if check. The if check verifies that either the current or previous box in the path is equal to the enemy's current box. If the current enemy box is not equivialent to the box in path->box at the current or previous index, then the targetBoxOld is set to the invalid value, NO_BOX, which causes the path the regenerate. This commit avoids the out of bounds access by avoiding checking the box at (path->index - 1) if the index is 0. This maintains the same behavior as perform this CL because the out of bounds access was always accessing a garbage value not equal to the current enemy box value. * Add macOS build script and fix game content path for osx platform - Add build.sh for xcodebuild-based build with Debug/Release/clean/run options - Fix contentDir to use the app bundle's parent directory so game data folders (level/, audio/, etc.) placed next to the .app are found correctly - Update MACOSX_DEPLOYMENT_TARGET to 10.12 (minimum required by NSEventModifierFlag APIs) - Fix audio format flags (add kLinearPCMFormatFlagIsPacked) - Fix retina reshape to use convertRectToBacking: instead of manual scaling - Add menu bar, window activation, Core::width/height init in main() - Fix createDirectoryAtPath to use modern API with error handling --------- Co-authored-by: sbhyeon@hotmail.com <sbhyeon@hotmail.com> Co-authored-by: Emmaline Kelly <87994755+ekelly-disbelief@users.noreply.github.com> | 3 个月前 | |
[SDL2] Add fullscreen commandline parameter for desktop GL mode. (#528) | 1 个月前 | |
Create LICENSE | 8 年前 | |
Update README.md | 4 年前 |
以下内容由 AI 翻译,如有问题请 点此提交 issue 反馈
