cc9cii
477e0ee912
Convert std::to_string() calls to snprintf() for cell references.
...
- Profiling indicates snprintf() is more efficient when using MSVC (not tested with linux)
2015-12-18 19:39:40 +11:00
cc9cii
f6d6138f46
Minor formatting change.
2015-12-11 22:39:03 +11:00
cc9cii
de5ce7059e
Use load message system for moved ref target cell error logging.
2015-12-11 22:20:21 +11:00
cc9cii
47b5fa9dae
Convert some of ostringstream << operations to std::to_sting() calls.
...
- At least with MSVC the latter is more efficient.
- There are many more, but leave them until they show up during profiling (so far only loading was profiled, and mainly cell references)
2015-12-11 22:18:17 +11:00
cc9cii
86945d1912
Convert the CellRef record index lookup maps to use integer keys rather than strings.
...
- Morrowind load over 300,000 references, so even small inefficiencies add up to longer loading times.
- std::map is used, but should try others, std::unordered_map or even std::vector
2015-12-11 21:00:13 +11:00
cc9cii
0de223c637
Fix bug ( #3067 ) where content file number was being ignored while searching for already loaded cell references.
...
- Introduced by commits 49884f54f7
and 896ab44d1e
.
- Also see https://github.com/OpenMW/openmw/pull/557
2015-12-11 07:18:54 +11:00
cc9cii
306bfcbdf2
Fix exception when deleting a record while dialogue subview for that record is open.
2015-12-08 00:27:20 +11:00
cc9cii
68e16b6cee
Convert RefNum index map to use find().
2015-12-06 21:19:06 +11:00
cc9cii
ff072441fd
Change the loader's top progress bar to show total number of records processed rather than the number of files.
2015-12-06 19:48:56 +11:00
cc9cii
19af94b73e
Reduce copying further by adding move constructors and move assignment operators to CellRef structs.
2015-12-06 15:20:45 +11:00
cc9cii
23e7e3c165
Use std::unique_ptr to store records in collections, RefidCollection and RefIdData.
...
- std::move support required (C++11)
- MSVC 2013 or later should be fine
2015-12-06 15:14:05 +11:00
cc9cii
257126ed69
Call push_back() if inserting to the end of the vector. It seems MSVC may be generating different code compared to insert().
2015-12-05 20:50:47 +11:00
cc9cii
f029682057
Merge branch 'cc9cii' into minor-enhancements
...
Conflicts:
apps/opencs/model/doc/savingstages.cpp
apps/opencs/model/world/refidcollection.cpp
2015-12-05 19:55:32 +11:00
Marc Zinnschlag
ec00bd2c98
make initial size of script error panel configurable ( Fixes #2996 )
...
(cherry picked from commit 99500f4021
)
2015-12-05 17:45:58 +11:00
scrawl
ebf9ffd1da
Fix double writing of Dialogue NAME in OpenCS
...
(cherry picked from commit af4923577b
)
2015-12-05 17:33:13 +11:00
cc9cii
1334091613
Resolve merge issues.
2015-12-05 17:28:32 +11:00
Stanislav Bas
2abdeef2e0
Remove unused includes
...
(cherry picked from commit daaff1284e
)
Conflicts:
apps/openmw/mwworld/store.cpp
components/esm/util.hpp
2015-12-05 11:23:57 +11:00
Stanislav Bas
f4587e48f3
Load methods (for ESM records) accept a deleted flag in OpenCS
...
(cherry picked from commit 13bb6be238
)
Conflicts:
apps/opencs/model/doc/savingstages.cpp
apps/opencs/model/world/land.cpp
apps/opencs/model/world/land.hpp
apps/opencs/model/world/landtexture.cpp
2015-12-05 11:22:51 +11:00
Stanislav Bas
7013ba751c
Fix build errors & warnings
...
(cherry picked from commit 1e8182220a
)
2015-12-05 11:19:22 +11:00
Stanislav Bas
0277a4e8c4
Implement saving of deleted records
...
(cherry picked from commit 8e6a7be6f5
)
Conflicts:
apps/opencs/model/doc/savingstages.cpp
2015-12-05 11:18:15 +11:00
Stanislav Bas
a120bb2b54
Delete infos of deleted dialogue when loading a content file
...
(cherry picked from commit e04e32bcff
)
2015-12-05 09:46:53 +11:00
Stanislav Bas
9a803739ff
Add a separate method to check whether a record is deleted or not for IdCollection
...
(cherry picked from commit a4d3e59e5c
)
2015-12-05 09:46:40 +11:00
Stanislav Bas
4e199697cc
Handle deleted records in RefCollection
...
(cherry picked from commit 3ba73f5fd9
)
2015-12-05 07:20:22 +11:00
Stanislav Bas
9503104129
Return a correct index for a loaded record that was deleted
...
(cherry picked from commit a1389b87ba
)
2015-12-05 07:19:55 +11:00
Stanislav Bas
0979d88b0c
Rework RefIdData code. Update the index map when a new record is loaded
...
(cherry picked from commit 5e623a2a1d
)
2015-12-05 07:19:43 +11:00
Stanislav Bas
bd695feded
Remove INAM handling from InfoCollection
...
(cherry picked from commit 71e5fc7f04
)
2015-12-05 07:19:18 +11:00
Stanislav Bas
d518d70212
Remove NAME and DELE handling from IdCollection
...
(cherry picked from commit 74a055f3cc
)
2015-12-05 07:18:39 +11:00
Stanislav Bas
639e6e1c56
Remove DELE and NAME handling from RefIdCollection and RefIdData
...
(cherry picked from commit 42f9136141
)
2015-12-05 07:18:27 +11:00
cc9cii
d70064efe4
Fix warning C4456 (declaration hides previous local declaration)
2015-11-22 19:15:06 +11:00
cc9cii
cc984497d7
Fix warning C4838 (conversion from 'double' to 'const float' requires a narrowing conversion)
2015-11-22 18:49:58 +11:00
cc9cii
a38881e4cf
Further clean up of moving out NpcAutoCalc from Data.
2015-11-08 09:45:12 +11:00
cc9cii
04c5c0d82a
Move NPC autocal code out to a separate class.
2015-11-08 06:02:53 +11:00
cc9cii
9716b671f1
Merge branch 'cc9cii' into Feature-1278
...
Conflicts:
apps/opencs/CMakeLists.txt
apps/opencs/model/world/nestedcoladapterimp.cpp
apps/opencs/view/render/cell.cpp
apps/opencs/view/render/worldspacewidget.cpp
2015-11-07 12:04:09 +11:00
cc9cii
007c733578
Resolve merge issues and add back user preference setting for auto selecting a modified record.
...
(cherry picked from commit 321b1b5106a47500bffd4c78a66d3d6f44a06f5b)
Conflicts:
apps/opencs/model/settings/usersettings.cpp
2015-11-07 07:17:46 +11:00
cc9cii
fb3015c9b8
Merge branch 'cc9cii' into jump-to-modified
...
Conflicts:
apps/opencs/view/world/table.cpp
apps/opencs/view/world/table.hpp
apps/opencs/view/world/tablesubview.cpp
2015-11-07 06:30:46 +11:00
cc9cii
12a8692cdb
Fix include file issue.
...
(cherry picked from commit 7f477e2fae
)
2015-11-02 18:50:02 +11:00
cc9cii
6d38d97470
Fix some sub-tables becoming uneditable since commit 80869d
...
(cherry picked from commit 4af469511d
)
Conflicts:
apps/opencs/model/world/refidadapterimp.hpp
2015-11-02 18:49:48 +11:00
cc9cii
a19a1dabe2
Add a check for scale value of 0. Should resolve bug #2880 .
...
(cherry picked from commit 819fecd08e
)
2015-11-02 18:46:34 +11:00
cc9cii
26195dc5fe
Rename a variable to make it less confusing.
...
(cherry picked from commit 7c007d9c6d
)
2015-11-02 18:46:21 +11:00
cc9cii
894f3a9418
Fix saving when only topic info was modified (topic itself unchanged)
...
(cherry picked from commit 78c735adc6
)
2015-11-02 18:46:04 +11:00
cc9cii
245357c9b2
Move TableEditModes enum inside a class scope.
...
(cherry picked from commit 107ccd84d4
)
Conflicts:
apps/opencs/model/world/refidadapterimp.cpp
2015-11-02 18:45:17 +11:00
cc9cii
0ec4af4210
Re-add mistakenly removed line and fix a silly typo.
...
(cherry picked from commit 77471d1592
)
2015-11-02 06:25:46 +11:00
cc9cii
f08680ebcd
Disable context menu for fixed size sub-tables. Should resolve bug #2932 .
...
(cherry picked from commit 80869d9bae
)
Conflicts:
apps/opencs/view/world/dialoguesubview.cpp
apps/opencs/view/world/nestedtable.cpp
apps/opencs/view/world/nestedtable.hpp
2015-11-02 06:25:31 +11:00
cc9cii
b595f2641c
Fix issue where mandatory effects field was allowed to be empty (and vice versa)
...
(cherry picked from commit 972193c7eb
)
2015-11-01 23:09:06 +11:00
cc9cii
bb1a959c88
Fix skills and attributes being possible to add to irrelevant effects. Should resolve bug #2980 .
...
(cherry picked from commit 1a64b40725
)
2015-11-01 23:08:55 +11:00
cc9cii
30de5c1c59
Fix editing ingredient effects sub-table. Should resolve bug #2978 .
...
(cherry picked from commit 9f0e059a15
)
2015-11-01 23:08:42 +11:00
cc9cii
b3daa7d956
Fix AiWander sub-table editing. Should resolve bugs #2888 and #2930 .
...
(cherry picked from commit 3bbcf6a916
)
Conflicts:
apps/opencs/model/world/columns.cpp
apps/opencs/model/world/columns.hpp
2015-11-01 22:47:47 +11:00
cc9cii
9cc046ce4e
Further rationalise the use of ColumnIds
...
- Address Zini's review comments as per https://github.com/OpenMW/openmw/pull/755
(cherry picked from commit 998348e606
)
2015-11-01 22:46:18 +11:00
Marc Zinnschlag
69e6328507
fixed local variable caching issue in automatic error checking ( Fixes #2927 )
...
(cherry picked from commit 7bef97bf33
)
2015-11-01 21:36:14 +11:00
scrawl
fcb9068c19
Fix tab indentations in apps/ and components/
...
(cherry picked from commit a47617c21f
)
Conflicts:
apps/openmw/mwinput/inputmanagerimp.cpp
apps/openmw/mwmechanics/aicombat.cpp
apps/openmw/mwphysics/physicssystem.cpp
2015-11-01 21:34:23 +11:00