tennis.map: Texture tweak
[neverball] / share / solid_cmd.c
1 /*
2  * Copyright (C) 2003-2010 Neverball authors
3  *
4  * NEVERBALL is  free software; you can redistribute  it and/or modify
5  * it under the  terms of the GNU General  Public License as published
6  * by the Free  Software Foundation; either version 2  of the License,
7  * or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT  ANY  WARRANTY;  without   even  the  implied  warranty  of
11  * MERCHANTABILITY or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU
12  * General Public License for more details.
13  */
14
15 #include "solid_cmd.h"
16 #include "cmd.h"
17
18 /*---------------------------------------------------------------------------*/
19
20 static void (*cmd_enq_fn)(const union cmd *);
21
22 void sol_cmd_enq(const union cmd *new)
23 {
24     if (cmd_enq_fn)
25         cmd_enq_fn(new);
26 }
27
28 void sol_cmd_enq_func(void (*enq_fn) (const union cmd *))
29 {
30     cmd_enq_fn = enq_fn;
31 }
32
33 /*---------------------------------------------------------------------------*/