Implement F12 game reset (MRI only)
Can be disabled with "enableReset=false". While at it, also replace the flakey volatile bool flags with proper atomics.
This commit is contained in:
parent
3a2e560139
commit
d223d83cbf
23 changed files with 343 additions and 60 deletions
|
|
@ -105,6 +105,15 @@ public:
|
|||
size--;
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
remove(root);
|
||||
root.prev = &root;
|
||||
root.next = &root;
|
||||
|
||||
size = 0;
|
||||
}
|
||||
|
||||
T *tail() const
|
||||
{
|
||||
IntruListLink<T> *node = root.prev;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue