| 251 | #include "graph_engine.h" |
| 252 | |
| 253 | u16 map_add_user_spot(u8 level_id, Fvector position, LPCSTR spot_type, LPCSTR text) |
| 254 | { |
| 255 | shared_str level_name = ai().game_graph().header().level((GameGraph::_LEVEL_ID)level_id).name(); |
| 256 | |
| 257 | CMapLocation* ml = Level().MapManager().AddUserLocation(spot_type, level_name, position); |
| 258 | if (xr_strlen(text)) |
| 259 | ml->SetHint(text); |
| 260 | |
| 261 | return ml->ObjectID(); |
| 262 | } |
| 263 | |
| 264 | void map_change_spot_hint(u16 id, LPCSTR spot_type, LPCSTR text) |
| 265 | { |