| 98 | current_mode=newMode; |
| 99 | } |
| 100 | static void lockGrids() |
| 101 | { |
| 102 | if(current_mode!=MODE_LUA) |
| 103 | return ; |
| 104 | renderer_lua* r=reinterpret_cast<renderer_lua*>(enabler->renderer); |
| 105 | r->dataMutex.lock(); |
| 106 | } |
| 107 | static void unlockGrids() |
| 108 | { |
| 109 | if(current_mode!=MODE_LUA) |