public
Description: An isometric graphical interface for the games NetHack and Slash'EM
Homepage: http://clivecrous.lighthouseapp.com/projects/11282/home
Clone URL: git://github.com/clivecrous/vultures.git
Click here to lend your support to: vultures and make a donation at www.pledgie.com !
Add copyright headers where they were missing

Also some minor cleanups
DanielT (author)
Sun Dec 21 06:50:11 -0800 2008
commit  3d72fbefbca181e7f9f32cea065556993894df7d
tree    eab7bad03e0c68b85822086bdc082828c4743f4f
parent  8cd3cc4948f662f62a94cd70aa4f9660adb0b0d1
...
1
 
 
2
3
4
...
 
1
2
3
4
5
0
@@ -1,4 +1,5 @@
0
-/* Copyright (c) Jaakko Peltonen, 2000          */
0
+/* Copyright (c) Jaakko Peltonen, 2000                            */
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
 /* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include <stdlib.h>
...
1
2
 
3
4
5
...
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
...
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
...
91
92
93
94
95
96
97
...
118
119
120
121
122
123
124
...
324
325
326
327
328
329
330
 
 
331
332
333
...
336
337
338
339
340
 
341
342
343
...
352
353
354
355
356
 
357
358
359
...
442
443
444
445
446
...
1
2
3
4
5
6
...
26
27
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
30
31
...
33
34
35
 
 
 
 
 
 
 
 
 
 
36
37
38
...
68
69
70
 
71
72
73
...
94
95
96
 
97
98
99
...
299
300
301
 
 
 
 
302
303
304
305
306
...
309
310
311
 
 
312
313
314
315
...
324
325
326
 
 
327
328
329
330
...
413
414
415
 
 
0
@@ -1,5 +1,6 @@
0
 /* NetHack may be freely redistributed.  See license for details. */
0
 /* Copyright (c) Jaakko Peltonen, 2000          */
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
 
0
 #include <vector>
0
 #include <string>
0
@@ -25,20 +26,6 @@ using std::string;
0
 
0
 #include "date.h" /* this is in <variant>/include it's needed for VERSION_ID */
0
 
0
-/*----------------------------
0
-* constants
0
-*---------------------------- */
0
-
0
-/* why is this here? It should ALWAYS be defined by unistd.h */
0
-#ifndef R_OK
0
-#  define R_OK 4
0
-#endif
0
-
0
-
0
-/*----------------------------
0
-* pre-declared functions
0
-*---------------------------- */
0
-static void trimright(char *buf);
0
 static void vultures_show_intro(string introscript_name);
0
 
0
 
0
@@ -46,16 +33,6 @@ static void vultures_show_intro(string introscript_name);
0
 * function implementaions
0
 *---------------------------- */
0
 
0
-static void trimright(char *buf)
0
-{
0
-  int i;
0
-
0
-  i = strlen(buf) - 1;
0
-  while (i >= 0 && (buf[i] == ' ' || buf[i] == '\n' || buf[i] == '\r'))
0
-    i--;
0
-  buf[i + 1] = '\0';
0
-}
0
-
0
 
0
 void vultures_show_logo_screen(void)
0
 {
0
@@ -91,7 +68,6 @@ void vultures_show_logo_screen(void)
0
 }
0
 
0
 
0
-
0
 void vultures_player_selection(void)
0
 {
0
   SDL_Surface *logo;
0
@@ -118,7 +94,6 @@ void vultures_player_selection(void)
0
 }
0
 
0
 
0
-
0
 void vultures_askname(void)
0
 {
0
   int done;
0
@@ -324,10 +299,8 @@ int vultures_init_graphics(void)
0
   vultures_write_log(V_LOG_DEBUG, __FILE__, __LINE__, "Initializing fonts\n");
0
 
0
   /* try custom font first */
0
-  if (iflags.wc_font_text)
0
-  {
0
-    if (access(iflags.wc_font_text, R_OK) == 0)
0
-    {
0
+  if (iflags.wc_font_text) {
0
+    if (access(iflags.wc_font_text, R_OK) == 0) {
0
       font_loaded = 1;
0
       font_loaded &= vultures_load_font(V_FONT_SMALL, iflags.wc_font_text, 0, 12);
0
       font_loaded &= vultures_load_font(V_FONT_LARGE, iflags.wc_font_text, 0, 14);
0
@@ -336,8 +309,7 @@ int vultures_init_graphics(void)
0
       printf("Could not access %s: %s\n", iflags.wc_font_text, strerror(errno));
0
   }
0
 
0
-  if (!font_loaded) /* fallback to default font */
0
-  {
0
+  if (!font_loaded) {/* fallback to default font */
0
     font_loaded = 1;
0
     /* add the path to the filename */
0
     fullname = vultures_make_filename(V_FONTS_DIRECTORY, "", V_FILENAME_FONT);
0
@@ -352,8 +324,7 @@ int vultures_init_graphics(void)
0
   image = vultures_load_graphic(V_FILENAME_WINDOW_STYLE);
0
   if (image == NULL)
0
     all_ok = FALSE;
0
-  else
0
-  {
0
+  else {
0
     vultures_winelem.corner_tl = vultures_get_img_src(1, 1, 23, 23, image);
0
     vultures_winelem.border_top = vultures_get_img_src(27, 1, 57, 23, image);
0
     vultures_winelem.corner_tr = vultures_get_img_src(61, 1, 84, 23, image);
0
@@ -442,5 +413,3 @@ void vultures_destroy_graphics(void)
0
   /* misc small stuff */
0
   delete vultures_px_format;
0
 }
0
-
0
-
...
1
 
2
3
4
5
6
7
8
9
10
...
21
22
23
24
25
26
27
28
29
30
31
32
...
142
143
144
145
146
147
148
...
182
183
184
185
186
187
188
...
190
191
192
193
194
195
196
...
220
221
222
223
224
 
225
226
227
...
284
285
286
287
288
 
289
290
291
292
293
 
294
295
296
...
318
319
320
321
322
 
323
324
325
...
382
383
384
385
386
387
388
...
395
396
397
398
399
400
401
402
403
...
406
407
408
409
410
411
412
...
551
552
553
554
555
556
557
558
559
560
561
 
562
563
564
...
569
570
571
572
573
 
574
575
576
...
603
604
605
606
607
608
609
610
611
 
612
613
614
...
730
731
732
 
733
734
735
...
747
748
749
750
751
 
752
753
754
...
761
762
763
764
765
 
766
767
768
...
789
790
791
792
793
794
795
...
799
800
801
802
803
804
805
 
 
806
807
808
...
858
859
860
861
862
 
863
864
865
...
868
869
870
871
872
 
873
874
875
...
877
878
879
880
881
 
882
883
884
...
911
912
913
914
915
 
916
917
918
...
920
921
922
923
924
 
925
926
927
...
940
941
942
943
944
 
945
946
947
948
949
950
 
951
952
953
954
955
956
957
958
 
959
960
961
...
968
969
970
971
972
973
974
975
...
986
987
988
989
990
 
991
992
993
...
998
999
1000
1001
1002
 
1003
1004
1005
...
1010
1011
1012
1013
1014
1015
1016
...
1036
1037
1038
1039
1040
...
 
1
2
3
 
4
5
 
6
7
8
...
19
20
21
 
22
23
 
 
 
24
25
26
...
136
137
138
 
139
140
141
...
175
176
177
 
178
179
180
...
182
183
184
 
185
186
187
...
211
212
213
 
 
214
215
216
217
...
274
275
276
 
 
277
278
279
 
 
 
280
281
282
283
...
305
306
307
 
 
308
309
310
311
...
368
369
370
 
371
372
373
...
380
381
382
 
 
 
383
384
385
...
388
389
390
 
391
392
393
...
532
533
534
 
535
536
537
538
539
 
 
540
541
542
543
...
548
549
550
 
 
551
552
553
554
...
581
582
583
 
 
584
 
 
 
585
586
587
588
...
704
705
706
707
708
709
710
...
722
723
724
 
 
725
726
727
728
...
735
736
737
 
 
738
739
740
741
...
762
763
764
 
765
766
767
...
771
772
773
 
 
 
 
774
775
776
777
778
...
828
829
830
 
 
831
832
833
834
...
837
838
839
 
 
840
841
842
843
...
845
846
847
 
 
848
849
850
851
...
878
879
880
 
 
881
882
883
884
...
886
887
888
 
 
889
890
891
892
...
905
906
907
 
 
908
909
910
911
912
 
 
913
914
915
916
917
918
 
 
 
919
920
921
922
...
929
930
931
 
 
932
933
934
...
945
946
947
 
 
948
949
950
951
...
956
957
958
 
 
959
960
961
962
...
967
968
969
 
970
971
972
...
992
993
994
 
 
0
@@ -1,10 +1,8 @@
0
-/* Copyright (c) Daniel Thaler, 2006          */
0
+/* Copyright (c) Daniel Thaler, 2006, 2008                        */
0
 /* NetHack may be freely redistributed.  See license for details. */
0
 
0
-/* system headers */
0
 #include <ctype.h>
0
 
0
-/* SDL headers */
0
 #include <SDL.h>
0
 
0
 /* nethack headers */
0
@@ -21,12 +19,8 @@ extern "C" {
0
 #endif
0
 
0
 #include "func_tab.h" /* For extended commands list */
0
-
0
 }
0
 
0
-#include <assert.h>
0
-
0
-
0
 #define TRAVEL_HACK /* XXX This is to be removed once Slash'EM (NetHack?)  fixes the problem of infinite loops */
0
 
0
 /* vultures headers */
0
@@ -142,7 +136,6 @@ void vultures_init_nhwindows(int *argcp, char **argv)
0
   /* try to chdir to our datadir */
0
   vultures_chdir_to_datadir(argv[0]);
0
 
0
-
0
   if (!vultures_init_graphics())
0
     panic("could not initalize graphic mode");
0
 
0
@@ -182,7 +175,6 @@ void vultures_init_nhwindows(int *argcp, char **argv)
0
   iflags.menu_tab_sep = 1;
0
   iflags.wc_hilite_pet = 1;
0
 
0
-
0
   vultures_show_logo_screen();
0
 
0
   map_data = new mapdata();
0
@@ -190,7 +182,6 @@ void vultures_init_nhwindows(int *argcp, char **argv)
0
   new levelwin(map_data);
0
   vultures_windows_inited = 1;
0
 
0
-
0
   /* Success! */
0
   iflags.window_inited = TRUE;
0
 }
0
@@ -220,8 +211,7 @@ winid vultures_create_nhwindow(int type)
0
 {
0
   window *win;
0
 
0
-  switch(type)
0
-  {
0
+  switch(type) {
0
     case NHW_STATUS:
0
       win = new statuswin(vultures_get_window(0));
0
       break;
0
@@ -284,13 +274,10 @@ static void vultures_display_nhmap(struct window * win, vultures_event *result,
0
 
0
     win->need_redraw = 1;
0
 
0
-    if (flags.travel)
0
-    {
0
+    if (flags.travel) {
0
       if (vultures_event_dispatcher_nonblocking(result, NULL))
0
         vultures_stop_travelling = 1;
0
-    }
0
-    else
0
-    {
0
+    } else {
0
       win->draw_windows();
0
       vultures_refresh_window_region();
0
     }
0
@@ -318,8 +305,7 @@ void vultures_display_nhwindow(int winid, BOOLEAN_P blocking)
0
   if (!win)
0
     return;
0
 
0
-  switch(win->get_nh_type())
0
-  {
0
+  switch(win->get_nh_type()) {
0
     case NHW_TEXT:
0
       if (win->get_wintype() == V_WINTYPE_ENDING) {
0
         int response;
0
@@ -382,7 +368,6 @@ void vultures_destroy_nhwindow(int winid)
0
 }
0
 
0
 
0
-
0
 void vultures_start_menu(int winid)
0
 {
0
   window *win = vultures_get_window(winid);
0
@@ -395,9 +380,6 @@ void vultures_start_menu(int winid)
0
   if (win->get_nh_type() != NHW_MENU)
0
     return;
0
   
0
-  /* start menu should never be called on a window that is not a menu */
0
-  assert (win->get_wintype() == V_WINTYPE_MENU || win->get_wintype() == V_WINTYPE_OBJWIN);
0
-  
0
   menu = static_cast<menuwin*>(win);
0
   menu->reset();
0
   
0
@@ -406,7 +388,6 @@ void vultures_start_menu(int winid)
0
 }
0
 
0
 
0
-
0
 /* add an item to a menu that was started with vultures_start_menu */
0
 void vultures_add_menu(int winid, int glyph, const ANY_P * identifier,
0
           CHAR_P accelerator, CHAR_P groupacc, int attr,
0
@@ -551,14 +532,12 @@ void vultures_raw_print_bold(const char *str)
0
 void vultures_putstr(int winid, int attr, const char *str)
0
 {
0
   struct window * win;
0
-//     ANY_P menuid;
0
 
0
   if (!str)
0
     return;
0
 
0
   /* Display error messages immediately */
0
-  if (winid == WIN_ERR)
0
-  {
0
+  if (winid == WIN_ERR) {
0
     vultures_messagebox(str);
0
     return;
0
   }
0
@@ -569,8 +548,7 @@ void vultures_putstr(int winid, int attr, const char *str)
0
   * For windows of type NHW_MESSAGE, both the messages
0
   * and their send time are stored.
0
   */
0
-  switch (win->get_nh_type())
0
-  {
0
+  switch (win->get_nh_type()) {
0
     case NHW_MESSAGE:
0
       /* If "what's this" is active,skip the help messages
0
       * associated with NetHack's lookat command. */
0
@@ -603,12 +581,8 @@ void vultures_putstr(int winid, int attr, const char *str)
0
 
0
     case NHW_TEXT:
0
     case NHW_MENU:
0
-//             win->content_is_text = 1;    /* Text content */
0
-
0
       /* Add the new text line as a menu item */
0
-//             menuid.a_void = 0; /* Since text lines can't be selected anyway, these can be the same */
0
-//             vultures_add_menu(winid, NO_GLYPH, &menuid, 0, 0, ATR_NONE, str, FALSE);
0
-    static_cast<menuwin*>(win)->add_menuitem(str, false, NULL, '\0', 0);
0
+      static_cast<menuwin*>(win)->add_menuitem(str, false, NULL, '\0', 0);
0
       break;
0
 
0
     case NHW_STATUS:
0
@@ -730,6 +704,7 @@ void vultures_bail(const char *mesg)
0
   /*NOTREACHED*/
0
 }
0
 
0
+
0
 /* display a list of extended commands for the user to pick from */
0
 int vultures_get_ext_cmd(void)
0
 {
0
@@ -747,8 +722,7 @@ int vultures_get_ext_cmd(void)
0
   used_accels[0] = '\0';
0
 
0
   /* Add extended commands as menu items */
0
-  for (i = 0; extcmdlist[i].ef_txt != NULL; i++)
0
-  {
0
+  for (i = 0; extcmdlist[i].ef_txt != NULL; i++) {
0
     /* try to find an accelerator that fits the command name */
0
     cur_accelerator = tolower(extcmdlist[i].ef_txt[0]);
0
 
0
@@ -761,8 +735,7 @@ int vultures_get_ext_cmd(void)
0
     if (j < len)
0
       /* cur_accelerator is already used, so find another */
0
       cur_accelerator = vultures_find_menu_accelerator(used_accels);
0
-    else
0
-    {
0
+    else {
0
       /* cur_accelerator is not in use: claim it */
0
       used_accels[len] = cur_accelerator;
0
       used_accels[len+1] = '\0';
0
@@ -789,7 +762,6 @@ int vultures_get_ext_cmd(void)
0
 }
0
 
0
 
0
-
0
 /* display a file in a menu window */
0
 void vultures_display_file(const char *fname, BOOLEAN_P complain)
0
 {
0
@@ -799,10 +771,8 @@ void vultures_display_file(const char *fname, BOOLEAN_P complain)
0
 
0
   /* Read the file */
0
   f = dlb_fopen(fname, "r");
0
-  if (!f)
0
-  {
0
-    if (complain == TRUE)
0
-    {
0
+  if (!f) {
0
+    if (complain == TRUE) {
0
       sprintf(tempbuffer, "Can't open file [%s].\n", fname);
0
       vultures_messagebox(tempbuffer);
0
     }
0
@@ -858,8 +828,7 @@ void vultures_delay_output(void)
0
   /* the time it took to draw the map is subtracted from the delay time;
0
   * this allows the game to adapt to slow-drawing systems (ie unaccelerated
0
   * software graphics) */
0
-  if (vultures_map_draw_lastmove == moves)
0
-  {
0
+  if (vultures_map_draw_lastmove == moves) {
0
     delay -= vultures_map_draw_msecs;
0
     if (delay < 0)
0
       delay = 1;
0
@@ -868,8 +837,7 @@ void vultures_delay_output(void)
0
   origdelay = delay;
0
 
0
   /* delay in small increments and run the eventloop in between */
0
-  while (delay > 10)
0
-  {
0
+  while (delay > 10) {
0
     starttick = SDL_GetTicks();
0
 
0
     if (vultures_event_dispatcher_nonblocking(&result, NULL))
0
@@ -877,8 +845,7 @@ void vultures_delay_output(void)
0
 
0
     endtick = SDL_GetTicks();
0
     elapsed = endtick - starttick;
0
-    if (elapsed < 10)
0
-    {
0
+    if (elapsed < 10) {
0
       SDL_Delay(10 - elapsed);
0
       elapsed = 10;
0
     }
0
@@ -911,8 +878,7 @@ char vultures_message_menu(CHAR_P let, int how, const char *mesg)
0
 void vultures_curs(winid window, int x, int y)
0
 {
0
   /* allow selecting a position via keyboard for look and teleport (both set vultures_whatis_active) */
0
-  if (window == WIN_MAP && vultures_whatis_active)
0
-  {
0
+  if (window == WIN_MAP && vultures_whatis_active) {
0
     point mappos, mouse;
0
 
0
     mappos.x = x; mappos.y = y;
0
@@ -920,8 +886,7 @@ void vultures_curs(winid window, int x, int y)
0
 
0
     /* move the viewport when the mouse approaches the edge */
0
     if (mouse.x < 50 || mouse.x > (vultures_screen->w-50) ||
0
-      mouse.y < 50 || mouse.y > (vultures_screen->h-50))
0
-    {
0
+      mouse.y < 50 || mouse.y > (vultures_screen->h-50)) {
0
       levwin->set_view(x, y);
0
 
0
       /* calculate the new mouse position */
0
@@ -940,22 +905,18 @@ void vultures_get_nh_event(void)
0
 {
0
   static point lastpos[2] = {{-1,-1}, {-1,-1}};
0
 
0
-  if (flags.travel)
0
-  {
0
+  if (flags.travel) {
0
     /* if the positon 2 turns ago is identical to the current position,
0
     * the travel algorithm has hung and travel needs to be canceled */
0
     if (vultures_stop_travelling ||
0
       ((lastpos[1].x != lastpos[0].x || lastpos[1].y != lastpos[0].y) &&
0
-      lastpos[1].x == u.ux && lastpos[1].y == u.uy))
0
-    {
0
+      lastpos[1].x == u.ux && lastpos[1].y == u.uy)) {
0
       flags.travel = 0;
0
       flags.mv = 0;
0
       u.tx = u.ux;
0
       u.ty = u.uy;
0
       lastpos[0].x = lastpos[1].x = -1;
0
-    }
0
-    else
0
-    {
0
+    } else {
0
       lastpos[1] = lastpos[0];
0
       lastpos[0].x = u.ux;
0
       lastpos[0].y = u.uy;
0
@@ -968,8 +929,6 @@ void vultures_get_nh_event(void)
0
 }
0
 
0
 
0
-
0
-
0
 /*******************************************************
0
 * utility functions
0
 *******************************************************/
0
@@ -986,8 +945,7 @@ int vultures_find_menu_accelerator(char *used_accelerators)
0
   cur_accelerator = 0;
0
 
0
   /* Pick any available letter from [a-zA-Z] */
0
-  for (i = 0; i < strlen(acclist); i++)
0
-  {
0
+  for (i = 0; i < strlen(acclist); i++) {
0
     cur_accelerator = acclist[i];
0
 
0
     acc_found = 1;
0
@@ -998,8 +956,7 @@ int vultures_find_menu_accelerator(char *used_accelerators)
0
       break;
0
   }
0
 
0
-  if (acc_found)
0
-  {
0
+  if (acc_found) {
0
     /* Add found accelerator to string of used ones (assume there's enough room) */
0
     j = strlen(used_accelerators);
0
     used_accelerators[j] = cur_accelerator;
0
@@ -1010,7 +967,6 @@ int vultures_find_menu_accelerator(char *used_accelerators)
0
   return -1;
0
 }
0
 
0
-
0
 /*******************************************************
0
 * unsupported/unnecessary functions of the nethack api
0
 *******************************************************/
0
@@ -1036,5 +992,3 @@ void vultures_cliparound(int x, int y) {}
0
 #ifdef POSITIONBAR
0
 void vultures_update_positionbar(char *features) {}
0
 #endif
0
-
0
-
...
13
14
15
 
16
17
18
19
 
20
21
22
...
74
75
76
77
78
79
80
81
82
83
84
85
86
...
13
14
15
16
17
18
19
20
21
22
23
24
...
76
77
78
 
 
 
 
 
 
 
79
80
81
0
@@ -13,10 +13,12 @@ extern "C" {
0
 
0
 
0
 extern struct window_procs vultures_procs;
0
+extern int vultures_whatis_active;
0
 
0
 
0
 extern void win_vultures_init();
0
 extern int vultures_find_menu_accelerator(char *used_accelerators);
0
+extern void vultures_bail(const char *mesg);
0
 
0
 
0
 /* external declarations */
0
@@ -74,13 +76,6 @@ extern char * vultures_get_color_string();
0
 #endif
0
 
0
 
0
-extern void vultures_bail(const char *mesg);
0
-
0
-
0
-extern int vultures_whatis_active;
0
-
0
-
0
-
0
 #ifdef __cplusplus
0
 }
0
 #endif 
...
122
123
124
125
126
127
128
 
 
129
130
131
...
172
173
174
175
176
 
177
178
179
...
187
188
189
190
191
 
192
193
194
...
200
201
202
203
204
 
205
206
207
...
233
234
235
236
237
 
238
239
240
...
255
256
257
258
259
 
260
261
262
...
269
270
271
272
273
 
274
275
276
...
122
123
124
 
 
 
 
125
126
127
128
129
...
170
171
172
 
 
173
174
175
176
...
184
185
186
 
 
187
188
189
190
...
196
197
198
 
 
199
200
201
202
...
228
229
230
 
 
231
232
233
234
...
249
250
251
 
 
252
253
254
255
...
262
263
264
 
 
265
266
267
268
0
@@ -122,10 +122,8 @@ void vultures_mouse_draw(void)
0
 
0
 
0
   /* draw a new tooltip, if necessary */
0
-  if (vultures_tooltip.valid && vultures_tooltip.tip)
0
-  {
0
-    if (vultures_tooltip.cur.x == -1)
0
-    {
0
+  if (vultures_tooltip.valid && vultures_tooltip.tip) {
0
+    if (vultures_tooltip.cur.x == -1) {
0
       if (new_x + vultures_tooltip.tip->w > vultures_screen->w)
0
         vultures_tooltip.cur.x = vultures_screen->w - vultures_tooltip.tip->w;
0
       else if (new_x + cursor->xmod < 0)
0
@@ -172,8 +170,7 @@ void vultures_mouse_refresh(void)
0
                 new_y + cursor->graphic->h);
0
 
0
   /* refresh the position of the previous tooltip */
0
-  if (vultures_tooltip.refresh.x != -1)
0
-  {
0
+  if (vultures_tooltip.refresh.x != -1) {
0
     vultures_refresh_region(vultures_tooltip.refresh.x, vultures_tooltip.refresh.y,
0
             vultures_tooltip.refresh.x + vultures_tooltip.refresh.w,
0
             vultures_tooltip.refresh.y + vultures_tooltip.refresh.h);
0
@@ -187,8 +184,7 @@ void vultures_mouse_restore_bg()
0
 {
0
   vultures_tile * cursor;
0
 
0
-  if (vultures_tooltip.background)
0
-  {
0
+  if (vultures_tooltip.background) {
0
     vultures_put_img(vultures_tooltip.cur.x, vultures_tooltip.cur.y, vultures_tooltip.background);
0
     SDL_FreeSurface(vultures_tooltip.background);
0
     vultures_tooltip.background = NULL;
0
@@ -200,8 +196,7 @@ void vultures_mouse_restore_bg()
0
     vultures_tooltip.refresh.h = vultures_tooltip.tip->h;
0
   }
0
 
0
-  if (vultures_mouse.background)
0
-  {
0
+  if (vultures_mouse.background) {
0
     cursor = vultures_get_tile(vultures_mouse.cursor);
0
 
0
     vultures_put_img(vultures_mouse.cur.x + cursor->xmod,
0
@@ -233,8 +228,7 @@ static void vultures_mouse_get_bg(void)
0
 
0
 static void vultures_mouse_get_tt_bg(void)
0
 {
0
-  if (vultures_tooltip.tip && vultures_tooltip.valid)
0
-  {
0
+  if (vultures_tooltip.tip && vultures_tooltip.valid) {
0
     if (vultures_tooltip.background)
0
       SDL_FreeSurface(vultures_tooltip.background);
0
 
0
@@ -255,8 +249,7 @@ void vultures_mouse_invalidate_tooltip(int force)
0
     abs(vultures_mouse.cur.x - (vultures_tooltip.cur.x -
0
                   cursor->xmod)) > 4 ||
0
     abs(vultures_mouse.cur.y - (vultures_tooltip.cur.y -
0
-                  cursor->ymod - cursor->graphic->h)) > 4)
0
-  {
0
+                  cursor->ymod - cursor->graphic->h)) > 4) {
0
     vultures_tooltip.valid = 0;
0
     vultures_tooltip.cur.x = -1;
0
     vultures_tooltip.cur.x = -1;
0
@@ -269,8 +262,7 @@ void vultures_mouse_set_tooltip(string str)
0
 {
0
   int length, height;
0
 
0
-  if (!str.empty() && str != vultures_tooltip.text)
0
-  {
0
+  if (!str.empty() && str != vultures_tooltip.text) {
0
     vultures_tooltip.text = str;
0
 
0
     if (vultures_tooltip.background)
...
1
2
3
4
5
6
7
8
 
9
10
11
...
20
21
22
23
24
25
26
27
28
29
30
31
...
70
71
72
 
73
74
75
...
84
85
86
 
87
88
89
...
228
229
230
231
232
233
234
...
277
278
279
280
281
282
283
284
...
327
328
329
330
331
332
333
...
379
380
381
382
383
384
385
...
514
515
516
517
 
518
519
520
...
529
530
531
532
533
534
...
1
2
3
 
 
4
5
6
7
8
9
10
...
19
20
21
 
 
 
 
22
 
23
24
25
...
64
65
66
67
68
69
70
...
79
80
81
82
83
84
85
...
224
225
226
 
227
228
229
...
272
273
274
 
 
275
276
277
...
320
321
322
 
323
324
325
...
371
372
373
 
374
375
376
...
505
506
507
 
508
509
510
511
...
520
521
522
 
 
 
0
@@ -1,11 +1,10 @@
0
 /* Copyright (c) Daniel Thaler, 2006, 2008                        */
0
 /* NetHack may be freely redistributed.  See license for details. */
0
 
0
-#include <stdlib.h>
0
-#include <string.h>
0
 #include <errno.h>
0
 
0
 #include "hack.h"
0
+#include "epri.h"
0
 
0
 #if !defined WIN32
0
   #include <sys/mman.h>
0
@@ -20,12 +19,7 @@
0
 #include "vultures_opt.h"
0
 #include "vultures_tileconfig.h"
0
 
0
-#include "epri.h"
0
-
0
-
0
-
0
 #define TILEARRAYLEN (GAMETILECOUNT*3)
0
-
0
 #define TILECACHE_MAXAGE 4
0
 
0
 typedef struct {
0
@@ -70,6 +64,7 @@ void vultures_tilecache_discard(void)
0
   }
0
 }
0
 
0
+
0
 void vultures_tilecache_age(void)
0
 {
0
   int i;
0
@@ -84,6 +79,7 @@ void vultures_tilecache_age(void)
0
   }
0
 }
0
 
0
+
0
 void vultures_tilecache_add(vultures_tile *tile, int tile_id)
0
 {
0
   if (vultures_tilecache[tile_id].tile && vultures_tilecache[tile_id].tile != tile)
0
@@ -228,7 +224,6 @@ static inline vultures_tile * vultures_shade_tile(vultures_tile *orig, int shade
0
 }
0
 
0
 
0
-
0
 void vultures_put_tilehighlight(int x, int y, int tile_id)
0
 {
0
   vultures_tile *tile;
0
@@ -277,8 +272,6 @@ void vultures_put_tilehighlight(int x, int y, int tile_id)
0
 }
0
 
0
 
0
-
0
-
0
 int vultures_load_gametiles(void)
0
 {
0
   string filename;
0
@@ -327,7 +320,6 @@ void vultures_unload_gametiles(void)
0
 }
0
 
0
 
0
-
0
 static vultures_tile *vultures_make_alpha_player_tile(int monnum, double op_scale)
0
 {
0
   static int tilenum = -1;
0
@@ -379,7 +371,6 @@ static inline void vultures_set_tile_alpha(vultures_tile *tile, double opacity)
0
 }
0
 
0
 
0
-
0
 int vultures_object_to_tile(int obj_id, int x, int y, struct obj *in_obj)
0
 {
0
   struct obj *obj;
0
@@ -514,7 +505,7 @@ int vultures_monster_to_tile(int mon_id, int x, int y)
0
 
0
   /* we have different tiles for priests depending on their alignment */
0
   if (mon_id == PM_ALIGNED_PRIEST) {
0
-    register struct monst *mtmp = m_at(x, y);
0
+    struct monst *mtmp = m_at(x, y);
0
 
0
     switch (EPRI(mtmp)->shralign) {
0
       case A_LAWFUL:  return V_MISC_LAWFUL_PRIEST;
0
@@ -529,6 +520,3 @@ int vultures_monster_to_tile(int mon_id, int x, int y)
0
 
0
   return V_TILE_NONE;
0
 }
0
-
0
-
0
-
...
27
28
29
30
31
 
32
33
34
...
121
122
123
124
125
 
126
127
128
...
132
133
134
135
136
 
137
138
139
...
27
28
29
 
 
30
31
32
33
...
120
121
122
 
 
123
124
125
126
...
130
131
132
 
 
133
134
135
136
0
@@ -27,8 +27,7 @@ static struct vultures_font {
0
 int vultures_load_font (int font_id, const char * ttf_filename, int fontindex, int pointsize)
0
 {
0
   TTF_Font *newfont;
0
-  if(!TTF_WasInit())
0
-  {
0
+  if(!TTF_WasInit()) {
0
     if(TTF_Init()==-1)
0
       return FALSE;
0
 
0
@@ -121,8 +120,7 @@ void vultures_put_text_multiline(int font_id, string str, SDL_Surface *dest,
0
   text_height = vultures_text_height(font_id, str);
0
 
0
   /* lastfit is true when the last segment has been fit onto the surface (drawn) */
0
-  while (!lastfit)
0
-  {
0
+  while (!lastfit) {
0
     lastfit = 1;
0
 
0
     startpos = startpos + endpos;
0
@@ -132,8 +130,7 @@ void vultures_put_text_multiline(int font_id, string str, SDL_Surface *dest,
0
     txtlen = vultures_text_length(font_id, str_copy);
0
 
0
     /* split word off the end of the string until it is short enough to fit */
0
-    while (txtlen > maxlen)
0
-    {
0
+    while (txtlen > maxlen) {
0
       /* a piece will be split off the end, so this is not the last piece */
0
       lastfit = 0;
0
 
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-/* Copyright (c) Daniel Thaler, 2006          */
0
+/* Copyright (c) Daniel Thaler, 2006, 2008          */
0
 /* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #ifndef _vultures_win_h_
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_win.h"
0
 #include "vultures_sdl.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _anykeydialog_h_
0
 #define _anykeydialog_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_win.h"
0
 #include "vultures_gra.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _button_h_
0
 #define _button_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include <cstring>
0
 
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _choicedialog_h_
0
 #define _choicedialog_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_gra.h"
0
 #include "vultures_sdl.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _contextmenu_h_
0
 #define _contextmenu_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_win.h"
0
 #include "vultures_gen.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _dirdialog_h_
0
 #define _dirdialog_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 extern "C" {
0
 #include "hack.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _endingwin_h_
0
 #define _endingwin_h_
0
 
...
 
 
1
2
3
4
5
6
7
...
1
2
3
4
5
 
6
7
8
0
@@ -1,7 +1,8 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 extern "C" {
0
 #include "hack.h"
0
-// #include "skills.h"
0
 boolean can_advance(int skill, int speedy);
0
 }
0
 
...
 
 
 
1
2
3
4
5
6
7
8
9
10
11
...
1
2
3
4
5
6
7
 
8
9
 
10
11
12
0
@@ -1,11 +1,12 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _enhancebutton_h_
0
 #define _enhancebutton_h_
0
 
0
 #include <SDL.h>
0
-
0
 #include "window.h"
0
 
0
-
0
 #define V_FILENAME_ENHANCE              "enhance"
0
 
0
 
...
 
 
1
2
3
4
5
6
7
...
1
2
3
4
5
 
6
7
8
0
@@ -1,7 +1,8 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "hotspot.h"
0
 
0
-
0
 hotspot::hotspot(window *parent, int x, int y, int w, int h, int menu_id, string name) : window(parent)
0
 {
0
   this->x = x;
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _hotspot_h_
0
 #define _hotspot_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_win.h"
0
 #include "vultures_txt.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _inputdialog_h_
0
 #define _inputdialog_h_
0
 
...
1
 
 
2
3
4
...
 
1
2
3
4
5
0
@@ -1,4 +1,5 @@
0
-
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 extern "C" {
0
 #include "hack.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _inventory_h_
0
 #define _inventory_h_
0
 
...
 
 
1
2
3
4
5
6
7
8
9
...
1
2
3
4
5
6
7
 
8
9
10
0
@@ -1,9 +1,10 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 extern "C" {
0
   #include "hack.h"
0
 }
0
 
0
-
0
 #include "levelwin.h"
0
 #include "hotspot.h"
0
 #include "minimap.h"
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "mainwin.h"
0
 
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _mainwin_h_
0
 #define _mainwin_h_
0
 
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 extern "C" {
0
   #include "hack.h"
0
   
...
 
 
 
1
2
3
...
28
29
30
31
32
...
1
2
3
4
5
6
...
31
32
33
 
34
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _map_h_
0
 #define _map_h_
0
 
0
@@ -28,5 +31,4 @@ private:
0
   mapdata *map_data;
0
 };
0
 
0
-
0
 #endif
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #include "vultures_main.h"
0
 #include "vultures_win.h"
0
 #include "vultures_gen.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _mapdata_h_
0
 #define _mapdata_h_
0
 
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 extern "C" {
0
   #include "hack.h"
0
 }
...
 
 
 
1
2
3
...
72
73
74
75
76
...
1
2
3
4
5
6
...
75
76
77
 
78
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _menuwin_h_
0
 #define _menuwin_h_
0
 
0
@@ -72,5 +75,4 @@ protected:
0
   int count;
0
 };
0
 
0
-
0
 #endif
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 extern "C" {
0
   #include "hack.h"
...
 
 
 
1
2
3
...
32
33
34
35
36
...
1
2
3
4
5
6
...
35
36
37
 
38
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _messagewin_h_
0
 #define _messagewin_h_
0
 
0
@@ -32,5 +35,4 @@ private:
0
 
0
 extern messagewin *msgwin;
0
 
0
-
0
 #endif
...
 
 
1
2
3
...
15
16
17
18
19
20
21
...
1
2
3
4
5
...
17
18
19
 
20
21
22
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 extern "C" {
0
   #include "hack.h"
0
@@ -15,7 +17,6 @@ extern "C" {
0
 #include "levelwin.h"
0
 
0
 
0
-
0
 minimap::minimap(levelwin *p, mapdata *data) : window(p), level(p), map_data(data)
0
 {
0
   minimapbg = vultures_load_graphic(V_FILENAME_MINIMAPBG);
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _minimap_h_
0
 #define _minimap_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_sdl.h"
0
 #include "vultures_gra.h"
...
 
 
 
1
2
3
...
12
13
14
15
16
...
1
2
3
4
5
6
...
15
16
17
 
18
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _objheaderwin_h_
0
 #define _objheaderwin_h_
0
 
0
@@ -12,5 +15,4 @@ public:
0
   virtual eventresult event_handler(window *target, void *result, SDL_Event *event);
0
 };
0
 
0
-
0
 #endif
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_win.h"
0
 #include "vultures_gra.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _objitemwin_h_
0
 #define _objitemwin_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "optionwin.h"
0
 #include "menuwin.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _optionwin_h_
0
 #define _optionwin_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_gra.h"
0
 #include "vultures_sdl.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _scrollbar_h_
0
 #define _scrollbar_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "scrollwin.h"
0
 #include "scrollbar.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _scrollwin_h_
0
 #define _scrollwin_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 extern "C" {
0
   #include "hack.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _statuswin_h_
0
 #define _statuswin_h_
0
 
...
1
2
 
 
3
4
5
...
 
 
1
2
3
4
5
0
@@ -1,5 +1,5 @@
0
-#include <cstring>
0
-
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_gra.h"
0
 #include "vultures_txt.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _textwin_h_
0
 #define _textwin_h_
0
 
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "vultures_gfl.h"
0
 #include "vultures_gra.h"
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _toolbar_h_
0
 #define _toolbar_h_
0
 
...
1
 
 
2
3
4
...
 
1
2
3
4
5
0
@@ -1,4 +1,5 @@
0
-#include <cstring>
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
 
0
 #include "window.h"
0
 
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+/* Copyright (c) Daniel Thaler, 2008                              */
0
+/* NetHack may be freely redistributed.  See license for details. */
0
+
0
 #ifndef _window_h_
0
 #define _window_h_
0
 

Comments

clivecrous Sat Dec 27 07:05:23 -0800 2008

I will be going through the source code and removing all copyright, vulture’s is copyleft not copyright

clivecrous Sat Dec 27 07:07:29 -0800 2008

references to licence (nethack public licence): yes copyright: no

You’re welcome to add “authored by” but copyright I don’t think so, vulture’s is public domain and does not belong to any one person (?). I’m not a lawyer but copyrights do scare me ;)