Commit Graph

30909 Commits (1cf0cd56284ae1c48b33f187fbf6642323705658)
 

Author SHA1 Message Date
florent.teppe 1cf0cd5628 moved mwworld/cellutils.hpp -> esm/util.hpp 2 years ago
florent.teppe f261f59809 World::indexToPosition is modified to be less error prone. 2 years ago
florent.teppe 1fdecaaa34 seperate permanent and non permanent exterior cells. 2 years ago
florent.teppe f731c5eadb preloader compatible with esm4 exteriors. 2 years ago
florent.teppe 75561abfca Factorises code and fixes preload bug. 2 years ago
florent.teppe 5648e03e9e function to get cellsize depending on the context. 2 years ago
florent.teppe 93b3d9238c mWater level disabled for skyrim. 2 years ago
florent.teppe 3de08e654f Better handling of water levels for exterior cells.
Especially for skyrim and it's weird water level values in exteriors.
If we don't have a valid exterior water level we use the world's water level
2 years ago
florent.teppe 56cb2a83ec removed sDefaultWorldspace, only sDefaultWorldspaceId now.
sDefaultWorldspaceId is a StringRefId to be able to getvalue easily.
2 years ago
florent.teppe 141878f30d int x, int y , ESM::RefId worldspace => ESM::ExteriorCellIndex
also removed the changeToExteriorCell that only took a position as input, didn't work with esm4.
2 years ago
florent.teppe 43e247d458 fixes tests
fix linux build + clang-tidy
2 years ago
florent.teppe 1d03b54694 maps with tuple key instead of map of map
instead of using a map with key as exterior and map of <int ,int >, Cell as value we use a single map with a tuple x,y,exterior as key
2 years ago
florent.teppe d8a782425b can actually load and teleport to esm4 exterior spaces 2 years ago
florent.teppe eb48f8724f change grid and preload takes the right exterior
also fixes some crashes
2 years ago
florent.teppe 81d9686541 crashfix dynamic exterior cells 2 years ago
florent.teppe a62e75fd19 Initial attempt at loading esm4 exteriors 2 years ago
psi29a 242ac21b38 Merge branch 'fix_local_map_update' into 'master'
Update cell local map on different neighbour cells (#7140)

See merge request OpenMW/openmw!3012
2 years ago
elsid aa9fb33a18
Update cell local map on different neighbour cells
Save which neighbour cells were active when local map for a cell is rendered.
Update when intersection of currently loaded cells is different from stored. If
map was rendered when all neighbours were loaded no more updates will happen.
2 years ago
elsid f7ebd9b9b4
Avoid old C-style cast 2 years ago
elsid fd249b46c0
Remove redundant member function
mActive is public.
2 years ago
elsid b2f7fc70a6
Remove redundant MapSegment constructor and destructor 2 years ago
elsid d927aaad14
Avoid redundant getCell()->getGrid* calls 2 years ago
elsid 1324256440
Avoid redundant lookup 2 years ago
elsid 624ffef4fe
Reduce block nesting 2 years ago
psi29a 42bf639916 Merge branch 'cellstore_optimize' into 'master'
Optimize CellStore modifications

See merge request OpenMW/openmw!3013
2 years ago
Petr Mikheev f3adcab9c5 Update CellStore::mMergedRefs lazily. 2 years ago
Petr Mikheev 93342af1f9 Remove CellStore::searchViaRefNum (replaced with WorldModel::getPtr) 2 years ago
Petr Mikheev 270ead937b Remove check in cellstore.cpp that causes Lua teleport command to fail. 2 years ago
jvoisin 0270cfb733 Merge branch 'throw_with_more_info' into 'master'
show which file is not found

See merge request OpenMW/openmw!3011
2 years ago
Bret Curtis 95fff7b77b show which file is not found 2 years ago
psi29a 54a79cfc39 Merge branch 'master' into 'master'
fixed some typos and spelling errors

See merge request OpenMW/openmw!3010
2 years ago
Elias Howell bf8fafa79a fixed some typos and spelling errors 2 years ago
psi29a feb10ae05b Merge branch 'revert_3003' into 'master'
Revert !3003 because it caused #7361

Closes #7361

See merge request OpenMW/openmw!3006
2 years ago
Petr Mikheev 3a8a4e8bff Revert "Replace `rayTest` with `convexSweepTest` `MovementSolver::traceDown`. Needed to prevent teleporting down through sewer grates."
This reverts commit 917132e326.
2 years ago
Alexei Kotov 4394970894 Merge branch 'gui_view' into 'master'
Use string_view in journal code

See merge request OpenMW/openmw!3005
2 years ago
Evil Eye f93d41d9ce Use string_view instead of const char* 2 years ago
Evil Eye ad3195488b Remove unimplemented method declaration 2 years ago
psi29a 0a8c801d66 Merge branch 'lua_getters' into 'master'
Rename some functions in Lua API from `aaa` to `getAaa` (for consistency with `setAaa`)

Closes #7356

See merge request OpenMW/openmw!3004
2 years ago
psi29a 753696583e Merge branch 'trace_down' into 'master'
Replace `rayTest` in `MovementSolver::traceDown` with `convexSweepTest`

See merge request OpenMW/openmw!3003
2 years ago
Petr Mikheev 067df2d07e Rename some functions in Lua API from `aaa` to `getAaa` (for consistency with `setAaa`) 2 years ago
psi29a 1f0aede634 Merge branch 'celloverride' into 'master'
Fix cell overrides and remove unused, incomplete erase method

See merge request OpenMW/openmw!3001
2 years ago
Petr Mikheev 917132e326 Replace `rayTest` with `convexSweepTest` `MovementSolver::traceDown`. Needed to prevent teleporting down through sewer grates. 2 years ago
psi29a ee224d00ab Merge branch 'keep_refnum' into 'master'
Keep refnum when moving objects to/from inventory (partially resolves #6148)

Closes #6148

See merge request OpenMW/openmw!2995
2 years ago
Evil Eye 22ba0a1cf0 Improve variable names 2 years ago
Petr Mikheev 86fce41a39 Keep refnum when moving objects to/from inventory (#6148) 2 years ago
elsid 188de0d8d4 Merge branch 'journalcase' into 'master'
Remove dialogue related instances of getRefIdString

See merge request OpenMW/openmw!2999
2 years ago
jvoisin 61691da512 Merge branch 'script_run' into 'master'
Pass path to startup script as std::filesystem::path

See merge request OpenMW/openmw!3002
2 years ago
elsid 6de335dd77
Pass path to startup script as std::filesystem::path 2 years ago
Evil Eye 2a48642fe3 Fix cell overrides and remove unused, incomplete erase method 2 years ago
Tetramir 1b3dc232f1 Merge branch 'editbox_log_spam' into 'master'
Fix MyGUI log spam when post processing HUD is open

Closes #7131

See merge request OpenMW/openmw!2996
2 years ago